I am trying to pass a multi dimmed array as a variable parameter to a custom
function to build a query for me. Here is the basic code and what I am
getting.
$WhereList[0][0] = 'OESalesOrder.OrderNo';
$WhereList[0][1] = '=';
$WhereList[0][2] = '2272';
$SQLString =
Actually Stut pointed out that I was calling both dimmensions when my sorry
butt should only have been referencing the second one.
I had everything over expanded so I could see where the code was breaking.
Thank you everyone for the help! That was fantastic!
Frank
Frank Stanovcak [EMAIL
Is it possible to use the php filter function to sanitize a regular
expression such as to return just the date part of a string that may be
passed by an nonobservant user?
#\d\d/\d\d/\d\d\d\d#
input would be something like
as02/05/2008df
I want to use the filter to give me just the date
by the by I'm using filter_var($string, FITER_VALIDATE_REGEXP, blah blah
blah)
Frank Stanovcak [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is it possible to use the php filter function to sanitize a regular
expression such as to return just the date part of a string that may
A while ago I asked a question and got a few answers, so I thought I would
toss this out there as a follow up. I'm going to be using this to return
filtered regexp values for a user interface.
I haven't had a chance to enter this into my code yet, so if anyone sees
something wrong please
]
Frank Stanovcak wrote:
A while ago I asked a question and got a few answers, so I thought I
would toss this out there as a follow up. I'm going to be using this
to return filtered regexp values for a user interface.
I haven't had a chance to enter this into my code yet, so if anyone
sees
Wolf [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
!-- SNIP --
Redirects make sense IMO. IIRC the Yahoo guidelines say not to
redirect after a form POST, but unless you have a ka-jillion page
views a second (or, a lot), then I don't think it's a concern.
Wait, Yahell has
I'm trying to follow the three precepts of accepting user entries...
1. never trust it.
2. never trust it.
3. never trust it ever!
I have one entry that may equal 0 on submission, and if it does is tripping
a bool false result, so I came up with this work around. However when I put
this in my
Please disregard It was a code fragment elsewhere that got put in when I
went to save. Thank you for looking though!
Frank
Savant at Large
Frank Stanovcak [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm trying to follow the three precepts of accepting user entries...
1. never
TY. That should help greatly!
Shawn McKenzie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Frank Stanovcak wrote:
I'm trying to follow the three precepts of accepting user entries...
1. never trust it.
2. never trust it.
3. never trust it ever!
I have one entry that may equal
I'm using the following code to try and do a simple insert query. However
it won't insert the data into the table, and I get no error messages. What
have I done wrong this time?
?php
session_start();
$connection = mysql_connect('localhost','yeah','right');
Just incase the problem was refrencing an array in an SQL statement I tried
this too with the same result.
?php
session_start();
$connection = mysql_connect('localhost','FrankS','rastane');
mysql_select_db('envelope1',$connection);
$filtered = $_SESSION['filtered'];
$salesorder =
Daniel Brown [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, Oct 17, 2008 at 12:11 PM, Jay Blanchard [EMAIL PROTECTED]
wrote:
It's Friday night, shouldn't you be going to the pub instead?
In another eight years he'll be glad to do that. Little-known
fact: Nate is
I can't seem to find a reference to this in the manual, but is there an
order of precedence for and or xor in an if statement? Kind of like PPMDAS
or polish notation for math (PPMDAS = Powers. Parenthacies.
Multiplication...)
I ask because this seems to be working for me, but I want to make
Robert Cummings rob...@interjinn.com wrote in message
news:1229096146.22284.27.ca...@localhost...
On Fri, 2008-12-12 at 06:34 -0600, Jay Blanchard wrote:
[snip]
It's Christmas... the season of giving and tolerance :|
[/snip]
We will return you to your regularly scheduled Robert Cummings
Thanks. Don't know how I could have missed that.
Maciek Sokolewicz tula...@php.net wrote in message
news:49428d51.3090...@php.net...
Frank Stanovcak wrote:
I can't seem to find a reference to this in the manual, but is there an
order of precedence for and or xor in an if statement? Kind
It's been a while since I've programed (VB was on version 4) I was wondering
if any one could tell me what the diff is between char, varchar, and text in
mysql.
I know this isn't a mysql news group, but since I am using php for the
interaction it seemed like the place to ask. Thanks in
not addled damnit! :)
Stuart stut...@gmail.com wrote in message
news:a5f019de0901051115ree20159tbbcf5b3cb2633...@mail.gmail.com...
2009/1/5 Frank Stanovcak blindspot...@comcast.net:
It's been a while since I've programed (VB was on version 4) I was
wondering
if any one could tell me what the diff
This would be the winning answer. I've been using text up till now. I'll
have to change that.
Thank you!
Robert Cummings rob...@interjinn.com wrote in message
news:1231185251.4.2.ca...@localhost...
On Mon, 2009-01-05 at 19:15 +, Stuart wrote:
2009/1/5 Frank Stanovcak blindspot
So what I'm taking away from this is that I can index a text column, but
that is relatively new. Based on experience with technology I'm going to
guess it's not a very efficient index or search function yet. CHAR seems to
be well entrenched, and the favorite for any column I may need to
I may be mistaken, but it seems to me you would be better served letting it
be file uploaded via php and process it as it arrives. This would save the
chron run every 5 min, and dir search headaches. Or is there an issue that
requires you to use an ftp transport?
Merlin Morgenstern
This is verbatim from the manufacturer except I replaced the code info with
vanilia filler to keep from getting in trouble with them.
See how long it takes you to write the shortest SQL code that returns all
State a and State f records.
If this seems simple to you remember I have no formal
I'm working in the same kind of environment.
Make sure you are single quoting string data in MySQL
as in
$query = SELECT * FROM admin WHERE UserName = ' . $_SESSION['user'] . '
;
Thats a single quote, double quote, dot, session var, dot, double quote,
single quote
I wrote that out because I
One other thought. If you are getting a blank page with no errors or out
put at all, I've noticed that I somtimes have to get the page to load
successfully before the web server will dish out the error.
What I normally do is upload a blank php page with the same name as the one
I am working
Terion Miller webdev.ter...@gmail.com wrote in message
news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com...
$result=mysql_query($query) or die('Queryproblem: ' . mysql_error()
.
'br /Executedquery: ' . $query);
if (mysql_num_rows($result) =
here is a handy little snippet of code I use. Just include it where you
want to get a snap shot of all the variables in an app.
ta ta for today boys!
- Original Message -
From: Chris dmag...@gmail.com
To: Terion Miller webdev.ter...@gmail.com
Cc: Frank Stanovcak blindspot
($value) and $key != 'GLOBALS'){
if(sizeof($value) 0){
breakarray($value);
echo '/td/tr';
}else{
echo 'EMPTY /td/tr';
};
}else{
echo '' , $value , '/td/tr';
};
};
echo '/table';
?
- Original Message -
From: Ashley Sheridan
To: Chris
Cc: Frank Stanovcak ; Terion
And people tell me that I'm just wrong.
Nathan Rixham nrix...@gmail.com wrote in message
news:4965dffc.6020...@gmail.com...
Robert Cummings wrote:
On Thu, 2009-01-08 at 10:51 +, Richard Heyes wrote:
until you have to dump it, zip it, ssh it over to another box and then
import it back in
I've been a microshaft punk for some time now, and am just getting ready to
try to step over to unix on one of my own boxes.
Does anyone have any suggestions on which flavor would be a good idea to
start with? I'm looking mostly for compatibility with php, mysql, and other
web based
if you want to know what is happening...I just did the research...the while
statment runs untill the condition is false. This means that, this your
case,
$row = false. We were getting results in the loop becuase that never
happened while it was looping, but to end the loop it proccessed $row =
*bangs head on wall*
Great...just what I need. More acronyms. :P
Frank
Paul Scott psc...@uwc.ac.za wrote in message
news:1231506224.7389.7.ca...@paul-laptop...
On Fri, 2009-01-09 at 14:53 +0200, Paul Scott wrote:
First choice is ./configure make make install, second choice is
apt
VamVan vamsee...@gmail.com wrote in message
news:12eb8b030901091135u4e17f1f3p24698dbc8f5a2...@mail.gmail.com...
-- Remember as you re still a beginner try to avoid using ? at the end of
complete PHP code page. or else if you have empty lines at the end of the
file then you wont see blank
Ashley Sheridan wrote in message
news:1231681793.3527.2.ca...@localhost.localdomain...
On Sun, 2009-01-11 at 08:08 -0500, tedd wrote:
At 4:16 PM -0500 1/10/09, Paul M Foster wrote:
And let me present an alternative perspective. Never do something like:
?php echo 'Hellow world'; ?
Let
I've googled, and found some confusing answers.
I've tried searching the history of the news group, and only found info on
switch or elseif seperately. :(
Strictly from a performance stand point, not preference or anything else, is
there a benefit of one over the other?
for($i=0;$i3;$i++){
I've googled, and found some confusing answers.
I've tried searching the history of the news group, and only found info on
switch or elseif seperately. :(
Strictly from a performance stand point, not preference or anything else, is
there a benefit of one over the other?
for($i=0;$i3;$i++){
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1231793310.3558.55.ca...@localhost.localdomain...
On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote:
I've googled, and found some confusing answers.
I've tried searching the history of the news group, and only found info
Eric Butera eric.but...@gmail.com wrote in message
news:6a8639eb0901121231r253eed48xe1974d8ef44ab...@mail.gmail.com...
On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak
blindspot...@comcast.net wrote:
I've googled, and found some confusing answers.
I've tried searching the history of the news
I posted this once before, and then tried to use it multiple times in a
script. As you can guess I got a bunch of func already defined errors.
Here is a revision incase anyone decided to use it that will work multiple
times in the same script for variable watching.
---Code follows---
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1231796437.3558.62.ca...@localhost.localdomain...
On Mon, 2009-01-12 at 16:11 -0500, Frank Stanovcak wrote:
I posted this once before, and then tried to use it multiple times in a
script. As you can guess I got a bunch of func
Chris dmag...@gmail.com wrote in message
news:496bbd52.2080...@gmail.com...
Frank Stanovcak wrote:
I posted this once before, and then tried to use it multiple times in a
script. As you can guess I got a bunch of func already defined errors.
Here is a revision incase anyone decided to use
I'm trying to make sure that my sessions are timed out by my server.
I'm running it on winxp, and my php.ini contains the following
session.gc_probability = 1
session.gc_divisor = 1
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef.24097.e510d...@pb1.pair.com...
Frank Stanovcak wrote:
I'm trying to make sure that my sessions are timed out by my server.
I'm running it on winxp, and my php.ini contains the following
session.gc_probability = 1
Nathan Rixham nrix...@gmail.com wrote in message
news:496d03d3.2060...@gmail.com...
Frank Stanovcak wrote:
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef.24097.e510d...@pb1.pair.com...
Frank Stanovcak wrote:
I'm trying to make sure that my sessions are timed out by my
Shawn McKenzie nos...@mckenzies.net wrote in message
news:e3.00.25553.8560d...@pb1.pair.com...
Frank Stanovcak wrote:
Nathan Rixham nrix...@gmail.com wrote in message
news:496d03d3.2060...@gmail.com...
Frank Stanovcak wrote:
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef
So from everything I've read there is no real way to assure a session
timeout with out timestamping it myself and dealing with it in code by doing
a time compare.
bummer.
Frank Stanovcak blindspot...@comcast.net wrote in message
news:57.31.25553.de80d...@pb1.pair.com...
Shawn McKenzie nos
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1231962521.3613.13.ca...@localhost.localdomain...
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
Hello,
I am trying to get the following to work:
Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'
Netid is a string
This is mostly to make sure I understand how sessions are handled correctly.
As far as sessions are concerned the variable data is stored on the server
(be it in memory or temp files), and never transmitted accross the net
unless output to the page? So this means I should be able to store the
VamVan vamsee...@gmail.com wrote in message
news:12eb8b030901141421u6741b943q396bc784136b7...@mail.gmail.com...
On Wed, Jan 14, 2009 at 2:22 PM, Frank Stanovcak
blindspot...@comcast.netwrote:
This is mostly to make sure I understand how sessions are handled
correctly.
As far as sessions
Nathan Rixham nrix...@gmail.com wrote in message
news:32.be.60519.170f4...@pb1.pair.com...
well just for the hell of it; and because I'm feeling worn..
anybody else find the following true when you're a developer?
- frequent bursts of side-tracking onto more interesting subjects
- vast
Robert Cummings rob...@interjinn.com wrote in message
news:1232447313.30838.5.ca...@localhost...
On Mon, 2009-01-19 at 22:06 +, Nathan Rixham wrote:
Robert Cummings wrote:
On Mon, 2009-01-19 at 21:53 +, Nathan Rixham wrote:
Robert Cummings wrote:
On Mon, 2009-01-19 at 21:28
Paul M Foster pa...@quillandmouse.com wrote in message
news:20090120151606.gu18...@quillandmouse.com...
I'd like a side check on what I'm doing to print on our internal
network.
We have an internal server/site which uses PHP code I've written to
run the business-- invoicing, A/P, inventory,
I'm trying to build a prepared statment and dynamically bind the variables
to it since I use this on severaly different pages I didn't want to build a
huge bind statement hard coded on each page and then have to maintain it
every time there was a change.
I despise having to use eval() and was
Richard Heyes rich...@php.net wrote in message
news:af8726440901220050i71d99bf7m5425620f67350...@mail.gmail.com...
PS - I think the best ever name for a Exception class is 'Tantrum':
throw new Tantrum('Ra Ra Ra Aaaargh');
Lol.
--
Richard Heyes
HTML5 Graphing for Firefox,
Nathan Nobbe quickshif...@gmail.com wrote in message
news:7dd2dc0b0901221048g2f089cf9s36ecb9a5b35ab...@mail.gmail.com...
On Thu, Jan 22, 2009 at 8:35 AM, Frank Stanovcak
blindspot...@comcast.netwrote:
I'm trying to build a prepared statment and dynamically bind the
variables
to it since I
Nathan Nobbe quickshif...@gmail.com wrote in message
news:7dd2dc0b0901221048g2f089cf9s36ecb9a5b35ab...@mail.gmail.com...
yeah, id try call_user_func_array(),
omit the line to create a string out of the $params, then merge the later
arguments into an array w/ the first 2 args
#$params =
tedd tedd.sperl...@gmail.com wrote in message
news:p06240802c5a28dd01...@[192.168.1.101]...
At 3:41 PM -0600 1/25/09, Micah Gersten wrote:
tedd wrote:
At 7:02 PM + 1/25/09, Ashley Sheridan wrote:
Tedd, what about having it reset if you then go back and select the
original option
Martin ZvarĂk mzva...@gmail.com wrote in message
news:66.93.12464.913ee...@pb1.pair.com...
Ashley Sheridan napsal(a):
On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote:
That's why I am sending this email only to people I know and care
about.
And they send to a mailing list. Come again?
Paul M Foster pa...@quillandmouse.com wrote in message
news:20090126222404.gc18...@quillandmouse.com...
On Mon, Jan 19, 2009 at 04:45:08PM -0500, Christopher W wrote:
Dear responders,
I was not sure which post was the best to respond to all of you so I
chose
the original.
I wanted to
Andrew Williams andrew4willi...@gmail.com wrote in message
news:1adf0c280901270134o2f06d0f9kaf3fce2fb4b6c...@mail.gmail.com...
Hi,
Beware of he spam mailer so do not let them spam your money away.
Andrew
On Tue, Jan 27, 2009 at 9:18 AM, clive
clive_li...@immigrationunit.comwrote:
Dora
I'm limiting access to certain proceedures based on the file trying to use
them, and the directory they are located in on my server. Right now I am
using two preg_match statments as you will see. What I want to know is
this. Is there a way to write a single regex for this that will supply
Frank Stanovcak blindspot...@comcast.net wrote in message
news:a8.d6.08436.5cf80...@pb1.pair.com...
I'm limiting access to certain proceedures based on the file trying to use
them, and the directory they are located in on my server. Right now I am
using two preg_match statments as you
Boyd, Todd M. tmbo...@ccis.edu wrote in message
news:33bde0b2c17eef46acbe00537cf2a19003bb9...@exchcluster.ccis.edu...
-Original Message-
From: Frank Stanovcak [mailto:blindspot...@comcast.net]
Sent: Wednesday, January 28, 2009 1:04 PM
To: php-general@lists.php.net
Subject: [PHP] Re
Don Collier dcoll...@collierclan.com wrote in message
news:4980ac7e.2080...@collierclan.com...
I am just learning PHP from the O'Reilly Learning PHP 5 book and I have a
question regarding the formatting of text. Actually it is a couple of
questions.
First, when I use the \n and run the
Don Collier dcoll...@collierclan.com wrote in message
news:4980c3d3.8040...@collierclan.com...
Paul M Foster wrote:
See? This is what I'm talking about.
*I* understand what you're saying, Don, and I agree. But this guy is
just learning PHP from what is arguably not one of the best books
Alice Wei aj...@alumni.iu.edu wrote in message
news:snt101-w587cd616331fc59b84834af0...@phx.gbl...
Hi,
I have a code snippet here as in the following:
//Switch statements between the four options
switch($string) {
case :
$string= NOT book.author='All';
break;
default:
$string= $string . AND
Ok. I've done some reading on frameworks for PHP now, and have this
question.
What are some good resources for learning about the various frameworks
available, and do you recomend one over another? If so why?
I started using PHP before frameworks came into the picture, and then had to
take
tedd tedd.sperl...@gmail.com wrote in message
news:p06240801c5aa0ed7d...@[192.168.1.101]...
At 4:16 PM +0100 1/30/09, Jochem Maas wrote:
tedd schreef:
At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote:
yes...that is legal. as long as the statment resolves to a boolean it
will
work
Terion Miller webdev.ter...@gmail.com wrote in message
news:37405f850902020902j624356ccp4ea869bc45161...@mail.gmail.com...
Is there a certain thing that should be suspected and looked at first when
getting the php blank page of hell
I have errors on and nothing is being output anywhere to
Boyd, Todd M. tmbo...@ccis.edu wrote in message
news:33bde0b2c17eef46acbe00537cf2a19003cb4...@exchcluster.ccis.edu...
-Original Message-
From: tedd [mailto:t...@sperling.com]
Sent: Thursday, February 05, 2009 10:07 AM
To: php-general@lists.php.net
Subject: [PHP] Garbage Collection
bruce bedoug...@earthlink.net wrote in message
news:234801c98863$88f27260$0301a...@tmesa.com...
hi...
trying to figure out the best approach to using preg_match to extract the
number from the follwing type of line...
131646 sometext follows..
basically, i want to extract the number,
Shawn McKenzie nos...@mckenzies.net wrote in message
news:e1.67.59347.e494c...@pb1.pair.com...
bruce wrote:
hmmm...
tried your preg__match/regex...
i get:
0 - 1145 total
1 - 1145
2 - l
i would have thought that the 2nd array item should have had total...
Probably want this:
I'm in the process of seperating logic from display in a section of code,
and wanted to make sure I wasn't treading on a performance landmine here, so
I ask you wizened masters of the dark arts this...
is there a serious performance hit, or reason not to use long, ie more than
30 - 40 lines,
Richard Heyes rich...@php.net wrote in message
news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com...
Wouldn't have thought so. But for readability, you may find this a
little easier instead:
Slight correction:
?
?=$var1? blah ?=var2?
?php
--
Richard Heyes
HTML5
presentation in a elegant way.
2009/2/6 Frank Stanovcak blindspot...@comcast.net:
I'm in the process of seperating logic from display in a section of code,
and wanted to make sure I wasn't treading on a performance landmine here,
so
I ask you wizened masters of the dark arts this...
is there a serious
Terion Miller webdev.ter...@gmail.com wrote in message
news:37405f850902060944y74a7a5e8ndce0c3456a32d...@mail.gmail.com...
Need eyes on this query, it is not inserting, I am going to highlight
what/where I thought the problem is (there is no )but when I add the
it
then changes the syntax
Eric Butera eric.but...@gmail.com wrote in message
news:6a8639eb0902061020v793d22b9x1430872c2170b...@mail.gmail.com...
On Fri, Feb 6, 2009 at 1:13 PM, tedd tedd.sperl...@gmail.com wrote:
At 1:55 AM +0100 2/6/09, Jochem Maas wrote:
that tedd's unlimited educational resources (tutors/courses)
Stuart stut...@gmail.com wrote in message
news:a5f019de0902060932k1ccf2948ua42f3cfa33694...@mail.gmail.com...
2009/2/6 Frank Stanovcak blindspot...@comcast.net:
Richard Heyes rich...@php.net wrote in message
news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com...
Wouldn't have
Boyd, Todd M. tmbo...@ccis.edu wrote in message
news:33bde0b2c17eef46acbe00537cf2a19003d07...@exchcluster.ccis.edu...
-Original Message-
From: Daevid Vincent [mailto:dae...@daevid.com]
Sent: Friday, February 06, 2009 2:26 PM
To: php-general@lists.php.net
Subject: Re: [PHP] How can I
Daniel Brown danbr...@php.net wrote in message
news:ab5568160902061416u10e761dal224ec7177d83e...@mail.gmail.com...
On Fri, Feb 6, 2009 at 13:46, Frank Stanovcak blindspot...@comcast.net
wrote:
Ok...I'm sure that somewhere in here has to be reference to the original
topic, and php...right
Michael A. Peters mpet...@mac.com wrote in message
news:49a79416.6060...@mac.com...
As my web app is coming to completion, I added a means to search records
(different from site search).
This involves reading post input and is many cases converting it to an
integer.
Damn I feel dumb.
Paul M Foster pa...@quillandmouse.com wrote in message
news:20090219022913.gl18...@quillandmouse.com...
On Wed, Feb 18, 2009 at 05:25:16PM -0600, Terion Miller wrote:
snip
What about just accepting any date in to the system, and defaulting
to
the current date if any
Kyohere Luke l...@beyonic.com wrote in message
news:9bc423c50903191018k3c783213l4929cf2878e98...@mail.gmail.com...
Eventually settled for getting rid of the spaces in the path. That worked.
Thanks.
Luke
On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert phps...@gmail.com wrote:
On Thu, Mar
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1237498771.3562.22.ca...@localhost.localdomain...
On Thu, 2009-03-19 at 17:33 -0400, Marc Christopher Hall wrote:
IP lookups are like Marxism, great idea in theory, terrible in reality.
IP's
can be spoofed. The best
George Larson george.g.lar...@gmail.com wrote in message
news:a623739c0903201141o3b430640haf91ea575f276...@mail.gmail.com...
houses ain't gunna cleen themselfs...
On Fri, Mar 20, 2009 at 2:39 PM, Ginkga Studio, LLC
webdes...@ginkga.comwrote:
LOL.
:0)
Ok. You guys are fun but I have to
84 matches
Mail list logo