bind199 Posted March 11, 2008 Share Posted March 11, 2008 hello i have a quick question in using an existing mysql database and i want to take the data in the database and put it into an array . How would one do this? thanks for your help. I know the mysql fetch comes into play but im not sure waht to do next. Link to comment https://forums.phpfreaks.com/topic/95539-php-question-with-database/ Share on other sites More sharing options...
$username Posted March 11, 2008 Share Posted March 11, 2008 You are most likely looking for something like this. $query = mysql_query "SELECT stuff FROM table WHERE something='Value'"; while ($row = mysql_fetch_array($query)) { $row['YourTableName']; } You will have to add some echos and your own table info. There are lots of tips on this if you do some google searching. Brett Link to comment https://forums.phpfreaks.com/topic/95539-php-question-with-database/#findComment-489078 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.