ID: 10861
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Arrays related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

user error:

change this line:
$userarr = array($board[9]);

to:
$userarr = $board[9];

and mysql_fetch_row gives one row per call

derick

Previous Comments:
---------------------------------------------------------------------------

[2001-05-14 16:59:21] [EMAIL PROTECTED]
When trying to put a value from a database into an array for checking, it jsut won't 
do it...

Like this:
$board_r = mysql_query("SELECT * FROM mb_boards WHERE BoardID='$BoardID'", $link);
$board = mysql_fetch_row ($board_r);
$userarr = array($board[9]);

When I try to call $userarr at a later date, all it prints is: "Array" - and it 
doesn't put the contents of that veriable into the array, even though the contents of 
the cell are separated with commas and all the proper stuff needed for an array!

Please help me!

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10861&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to