Skip navigation links

MySQL Forums :: Newbie :: Two timensional array mysql_fetch_what?


Advanced Search

Two timensional array mysql_fetch_what?
Posted by: Gal Koren ()
Date: November 03, 2009 08:33AM

$query = 'SELECT * FROM bla;';
$result = $db->query($query);

I want to be able to address to every data cell in the table by the name of the column and number by order. For example:
$x = $row['column']['0'];
$x is now set to something.

do I need to use
$row = mysqli_fetch_assoc($result)

or something else?

thanks a lot and sorry for the multiple threads.

Options: ReplyQuote


Subject Written By Posted
Two timensional array mysql_fetch_what? Gal Koren 11/03/2009 08:33AM
Re: Two timensional array mysql_fetch_what? Paul Svirin 11/03/2009 10:26AM


Sorry, only registered users may post in this forum.