Hye
I'm having a small problem
I'm attempting to query a mysql database using php. the problem is that there is only one record in the database table but even still i get two records of the same displayed in my browser. Does anyone have any ideas on how to fix this?
The code for the query is as follows:
mysql_select_db("coachhouse",$connection);
$result = mysql_query ("SELECT * FROM specials",$connection);
while ($row = mysql_fetch_array($result))
{
foreach ($row as $attribute)
PRINT "{$attribute} ";
PRINT "\n";
}
Duplicate value returned even though there is only 1 value
Moderator: General Moderators
hello again
this is what is returned in my browser
1 1 Sweet and Sour Rice served with hot sauce and noodles Sweet and Sour Rice served with hot sauce and noodles 2001-01-05 2001-01-05 10 10
there atre four fields in the table
as you can see they repeat them selves. but only one record in the table.
this is what is returned in my browser
1 1 Sweet and Sour Rice served with hot sauce and noodles Sweet and Sour Rice served with hot sauce and noodles 2001-01-05 2001-01-05 10 10
there atre four fields in the table
as you can see they repeat them selves. but only one record in the table.