| Article: |
Using MySQL from PHP | |
| Subject: | Connect to MySQL DB | |
| Date: | 2007-12-15 08:23:06 | |
| From: | krsbuilt | |
|
Response to: Connect to MySQL DB
|
||
|
Your Problem is that the database connection isn't using the mysql connection. If you did it like this:
|
||
Showing messages 1 through 1 of 1.
-
Connect to MySQL DB
2009-06-22 20:04:54 mfoster978 [View]



My script is below:
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("p3nlmysqladm001.secureserver.net:", "loginform978", "************") or die(mysql_error());
mysql_select_db('loginform978', $conn) or die(mysql_error());
?>
I have also tried this:
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("p3nlmysqladm001.secureserver.net:3306", "loginform978", "************") or die(mysql_error());
mysql_select_db('loginform978', $conn) or die(mysql_error());
?>
Please help me. If you need to please contact me at mike_foster@tmail.com.
Thanks,
Mike Foster