Jump to content

Get everything out of the databse


Bman900

Recommended Posts

if you are retrieving more than one row from the query you'll need to loop through the results.

// loop through the results
while($row = mysql_fetch_assoc( $result ))
{
    echo "Name: ".$row['name'];
    echo " Question: ".$row['question'];
    echo " Email: ".$row['email'];
}

if you are retrieving more than one row from the query you'll need to loop through the results.

// loop through the results
while($row = mysql_fetch_assoc( $result ))
{
    echo "Name: ".$row['name'];
    echo " Question: ".$row['question'];
    echo " Email: ".$row['email'];
}

 

My God you are smart! Thank you!

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.