i have a simple table and i want to make a simple query. below is the table
(all records are TEXT):
id userid age sex
1 [email]tom360@walla.com[/email] 25 male
2 [email]robert34731@yahoo.con[/email] 37 male
3 [email]alice@yahoo.com[/email] 36 female
4 [email]frank@yahoo.com[/email] 2 male
and this is my query :
$result=mysql_query("SELECT * FROM test");
$row = mysql_fetch_assoc ($result);
to show the result, i use :
foreach ($row as $value)
echo $value . '<br />';
and this is the answer :
1
tom360@walla.com
25
male
as you can see, there is only the the first record returnd.
i use easyphp 1.8(or 2.1) on my winXP.
any help, many thanks.