Return to Snippet

Revision: 33847
at October 17, 2010 09:36 by sjacunningham


Updated Code
$hostname_logon = "xxxxxx";   
$database_logon = "xxxxxx";  
$username_logon = "xxxxxx";  
$password_logon = "xxxxxx";   
//open database connection
 $connections = mysql_connect($hostname_logon, $username_logon, $password_logon) or die  or die( "Error! Could not logon: " . mysql_error() );
 //select database
 mysql_select_db($database_logon) or die  or die( "Error! Could not select the database: " . mysql_error() );

Revision: 33846
at October 14, 2010 06:27 by sjacunningham


Initial Code
$hostname_logon = "mysql3.namesco.net" ;   
$database_logon = "port80" ;  
$username_logon = "port80" ;  
$password_logon = "psjac6759" ;   
//open database connection
 $connections = mysql_connect($hostname_logon, $username_logon, $password_logon) or die  or die( "Error! Could not logon: " . mysql_error() );
 //select database
 mysql_select_db($database_logon) or die  or die( "Error! Could not select the database: " . mysql_error() );

Initial URL

                                

Initial Description

                                

Initial Title
PHP Mysql db logon

Initial Tags
mysql, php

Initial Language
PHP