Fatal Connect to database error - need help
I am new to MYSQL and are having a connect issue: Here is my error:
Fatal error: Call to undefined function mysql_connect() in D:\websites\display999.php on line 23
I am using PHP 5.04 MYSQL 4.1.11 and IIS on a windows XP pro PC.
This same code works on a linux box... but not here..?
here is some of the code:
<?php
//set variables for database:
$host = "localhost";
$user = "root";
$password = "franf";
$dbname = "vzw999";
$tablename = "main";
print $host;
echo $user;
echo $password;
echo $dbname;
echo $conn;
$conn = mysql_connect($host, $user, $password);
mysql_select_db(dbname);
$Query = "SELECT * from $tablename";
$Result = mysql_db_query ($dbname, $Query, $conn);
Thanks
Fran
Subject
Written By
Posted
Fatal Connect to database error - need help
June 06, 2006 08:06AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.