Ací teniu el codi:
-
$db=mysql_connect("localhost","USUARI_BBDD","CONTRASSENYA_BBDD");
- ");
echo ($myrow[name]);
echo (" - ");
echo ($myrow[mail]);
echo ("
mysql_select_db("LA_TEUA_BBDD",$db);
$result = mysql_query("SELECT name,mail FROM users",$db);
while($myrow = mysql_fetch_array($result))
{
echo ("
");
}
mysql_close($db);
?>