Jump to content

Reading more than one cell from a mySQL table.


HappyPandaFace

Recommended Posts

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?

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.