I'm new to php and been searching for an answer before I posted but to be truthful I'm not sure what to search for. Below is my code that I have. My search will bring back only one recordset but I want to display the name of the field and it's value. Maybe I'm going about this all wrong.
This will display the name but I can't figure out how to display the value. 😕
$viewid = $_GET["ID"];
$sql = "SELECT * FROM $table_name WHERE ID = $viewid";
$result = mysql_query($sql, $db);
while(($field = mysql_fetch_field($result)))
{
echo $field->name."<BR>\n";
}