Olivier N
2007-05-05 04:25:59 UTC
$db = mysql_connect("localhost");
mysql_select_db("umuryango",$db);
$query = "SELECT * FROM abavandimwe";
$result = mysql_query($query);
$table = mysql_field_table($table,0);
echo $table
?>
here my intertion was to echo the name of the table on the browser using localhost/db.php db.php being the name of the file
umuryango is the database name and abavandimwe is the table name that I created on mysql server. With nothing displayed on the browser I concluded that there is no connection between php and mysql. So I need your help.