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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.