A
Anonymous
Guest
Hello
I try to loop a table home like this
echo $result; gives me
Resource id #3
But I never get the data which are in home
Can you explain me ?
Thanks
Cordially
Steff
I try to loop a table home like this
Code:
$result = mysql_query("SELECT * FROM home");
echo $result;
if ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
$idh = $row("id_home");
$deh = $row("Desc_home");
$coh = $row("Contact_home");
}
}
echo $result; gives me
Resource id #3
But I never get the data which are in home
Can you explain me ?
Thanks
Cordially
Steff