|
<?php $strServer="localhost"; // Server IP Address Or Name $strDatabase="tripinfosource"; // Database Name $strUser="root"; // User ID $strPwd="root";// Password ?> the above is saved as conn.php <?php include("conn.php"); $strDB=mysql_connect($strServer,$struser,$strPwd);//line 5 $database=mysql_select_db("$strDatabase",$strDB);//line 6
// The code for any database manipulation mysql_close($strDB);//line 10 ?> these were the warnings that appeared:- Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: YES) in C:xamppxampphtdocssqlconn.php on line 5 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:xamppxampphtdocssqlconn.php on line 6 Warning: mysql_close() expects parameter 1 to be resource, boolean given in C:xamppxampphtdocssqlconn.php on line10 pls help me!!!!
(comments are locked)
|
The question has been closed Oct 05 '10 at 12:12 AM by Kev Riley for the following reason:
|
Try the following reference for MySql and PHP http://php.net/manual/en/function.mysql-connect.php Or go and ask those chaps over at StackOverflow.com
Oct 05 '10 at 01:14 AM
ThomasRushton ♦
(comments are locked)
|

