[PHP] parsing conundrum

2002-10-26 Thread Peter Harkins
If you know what recursion is and like a challege, here's a puzzle to keep you up nights. If not, you'll probably just want to mutter to yourself "what a poor, unlucky bastard" and pass on by. I'm parsing some data files into a PHP array and am stumped. I'm at a loss for how to do

Re: [PHP] Form element names starting with the "+" character????

2002-10-27 Thread Peter Harkins
On Sun, Oct 27, 2002 at 11:18:28PM -0700, Dan Tappin wrote: > What do you mean by "SQL injection"...? Well, to use your example of updating a user record, what if they added form variables? +admin=1 +paid_until=2102 +balance=10 Of course, not all will be applicable, but t

[PHP] return parse error

2001-04-13 Thread Peter Harkins
This generates a parse error: mysql_connect("localhost", "root", "rootpw") or return("bar"); But all the following work fine: mysql_connect("localhost", "root", "rootpw") or die("bar"); mysql_connect("localhost", "root", "root