What's not working? The following worked for me on my database
<?php
include("config.php");
dbConnect();
$query0 = mysql_query("SELECT * FROM $table5");
if($a_row=mysql_fetch_array($query0)) {
$profile = array("Username: " . $a_row["id"],
"E-Mail address: " . $a_row["email"],
"First Name: " . $a_row["fname"],
"Last Name: " . $a_row["lname"],
"ID: " . $a_row["id"]);
for($i=0; $i < sizeof($profile); $i++){
echo "$i. $profile[$i]<br>";
}
} else {
echo "array failed!";
}
?>
Is it not printing the values, or not printing anything at all? If it's not printing the values, use
$query = mysql_query("SELECT * FROM your_table") or die(mysql_error());
mysql_error() will let you know if the query fails.
Cgraz