Bug #10861: Array bug w/MySQL

From: Date: Mon, 14 May 2001 20:59:21 +0000
Subject: Bug #10861: Array bug w/MySQL
Groups: php.dev 
Request: Send a blank email to php-dev+get-55239@lists.php.net to get a copy of this message
From: czaries@hotmail.com Operating system: Unix PHP version: 4.0.5 PHP Bug Type: Arrays related Bug description: Array bug w/MySQL 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! -- Edit Bug report at: http://bugs.php.net/?id=10861&edit=1

« previous php.dev (#55239) next »