i’m trying to get a php database to output/display on a html webpage
and have no results from cutting and pasting code from online tutorials
i’m saving to a file with a htm extension
i believe i have the connection data right:
$db_host = ‘server’;
$db_user = ‘username’;
$db_pwd = ‘password’;
$database = ‘database’;
$table = ‘table’;
if (!mysql_connect($server,$username,$password))
die(“Can’t connect to database”);
if (!mysql_select_db($database))
die(“Can’t select database”);
$result = mysql_query(“SELECT * FROM table”)
or die(mysql_error());
Can someone please help me? send code? tell me what i’m doing wrong? Thanks