mysql connect not working with PHP
Posted
by shikhar
on Stack Overflow
See other posts from Stack Overflow
or by shikhar
Published on 2010-03-11T17:40:09Z
Indexed on
2010/03/11
17:44 UTC
Read the original article
Hit count: 331
Any idea why the following code is not working
mysql credentials are correct, have verified from command line.
The second connection fails i.e., $conn1 . I am clueless !!!
$conn = mysql_connect($hostname, $username, $password) or die("Connecting to MySQL failed" . mysql_error());
$conn1 = mysql_connect($hostname, $username1, $password1) or die("Connecting to MySQL failed" . mysql_error());
© Stack Overflow or respective owner