![]() |
|||||||||||||||||
|
|
|||||||||||||||||
| $databasename='database_name'; // Name of the database $tablename='table_name'; // Name of the table $mysqladd='localhost'; // Address to the MySQL Server - Usually localhost or an IP address $mysqluser='MySQL_username'; // Your MySQL UserName $mysqlpass='MySQL_password'; // Your MySQL Password //CONNECT TO MYSQL $link=mysql_connect($mysqladd,$mysqluser,$mysqlpass) or die('Database Error: ' . mysql_error()); //CONNECT TO DATABASE mysql_select_db($databasename, $link) or die('Could not connect to table: ' . mysql_error()); ?> | |||||||||||||||||
| Last Updated Wednesday, 19-Aug-2009 11:18:23 MST |