View Single Post
Old 12-08-2012, 03:39 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
PHP Code:
$_POST['userID'][$i
these posted items are not arrays, and posted data are initially strings. So $_POST['userID'][0] will return the first character of the string '93'.

PHP Code:
if (isset($_POST['userID']) && is_numeric($_POST['userID'])) {
    
$userid intval($_POST['userid'], 10);

but you need to resolve why you are expecting arrays from the posted data.

BTW It only returns one row because the glryID string of '1' doesn't have a second character to retrieve.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote