HappyPandaFace Posted April 4, 2007 Share Posted April 4, 2007 I'm trying to read all the data in a table and I'm using the code: $query = "select name, xpos, ypos from playervars"; $result = mysqli_query($cxn, $query) or die("Could not execute query."); $row = mysqli_fetch_assoc($result); print_r ($row); And all it returns is the first line of the table. I want to select it all. Is this possible? Link to comment https://forums.phpfreaks.com/topic/45643-reading-more-than-one-cell-from-a-mysql-table/ Share on other sites More sharing options...
Barand Posted April 4, 2007 Share Posted April 4, 2007 while ($row = mysqli_fetch_assoc($result)) { print_r ($row); } Link to comment https://forums.phpfreaks.com/topic/45643-reading-more-than-one-cell-from-a-mysql-table/#findComment-221664 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.