Re: function include() failed!
Posted by:
Eric
Date: June 17, 2005 09:04AM
Thank you, Jay. Here is the part of user.php:
...
<?php
include("Config.php");
$conn = mysql_connect($host, $user, $pass) or die ("Unable to connect!"); // line 14
mysql_select_db($dbname) or die ("Unable to select database!");
...
and the following is what I get from browser when I run user.php:
<?php
$host = 'localhost';
$user = 'root';
$pass = 'admin';
$dbname = 'polls';
?>
Notice: Undefined variable: host in C:\Server\Apache2\htdocs\Polls\user.php on line 14
Notice: Undefined variable: user in C:\Server\Apache2\htdocs\Polls\user.php on line 14
Notice: Undefined variable: pass in C:\Server\Apache2\htdocs\Polls\user.php on line 14
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Server\Apache2\htdocs\Polls\user.php on line 14
Unable to connect!
Subject
Written By
Posted
Re: function include() failed!
June 17, 2005 09:04AM
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.