php-general | 2003022
Date: 02/25/03
- Next message: Luis A: "[PHP] to Bryan Lipscy Re: [PHP] how___??"
- Previous message: Leif K-Brooks: "Re: [PHP] Auto Incrementing a Variable name?"
- Next in thread: Philip Hallstrom: "[PHP] Re: $_POST arrays not evaluated in sql statement -- why?"
- Reply: Philip Hallstrom: "[PHP] Re: $_POST arrays not evaluated in sql statement -- why?"
- Reply: Joshua Moore-Oliva: "Re: [PHP] $_POST arrays not evaluated in sql statement -- why?"
- Reply: John W. Holmes: "RE: [PHP] $_POST arrays not evaluated in sql statement -- why?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey all.
Got a problem with this sql statement -- php vars are evaluated (e.g. the
$date var), but not the $_POST arrays..........
All of the arrays return correct values -- What am I missing here?
$sql = "INSERT into rosters (school_id, sport_id, date, jersey_id, first,
last, position, grade, town, state, country, height, weight, DOB)
VALUES
('1','1','$date','$_POST['jersey_id'][$x]','$_POST['first'][$x]','$_POST['la
st'][$x]','$_POST['position'][$x]','$_POST['grade'][$x]',
'$_POST['town'][$x]','$_POST['state'][$x]','$_POST['country'][$x]','$_POST['
height'][$x]',
'$_POST['weight'][$x]','$DOB[$i]')";
I still have some hair left on my head..........
--Noah
---- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Luis A: "[PHP] to Bryan Lipscy Re: [PHP] how___??"
- Previous message: Leif K-Brooks: "Re: [PHP] Auto Incrementing a Variable name?"
- Next in thread: Philip Hallstrom: "[PHP] Re: $_POST arrays not evaluated in sql statement -- why?"
- Reply: Philip Hallstrom: "[PHP] Re: $_POST arrays not evaluated in sql statement -- why?"
- Reply: Joshua Moore-Oliva: "Re: [PHP] $_POST arrays not evaluated in sql statement -- why?"
- Reply: John W. Holmes: "RE: [PHP] $_POST arrays not evaluated in sql statement -- why?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

