Jump to content

mysql_fetch_array


c_pattle

Recommended Posts

Hi.  I just have a quick question.  If I perform a mysql query like the one below that returns all of the rows in a table.  How do I then add all of this data into an array.  If I use the following code bellow the variable $array will only contain the first row of the table. 

 

$rs = mysql_query($query, $conn);
$array = mysql_fetch_array ($rs);

Link to comment
https://forums.phpfreaks.com/topic/211116-mysql_fetch_array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.