Return to Snippet

Revision: 4283
at November 21, 2007 20:10 by jalsing


Initial Code
$host = localhost;
$usr = 'user';
$pwd = 'pass';
    
#connect to database
$cid = mysql_connect($host,$usr,$pwd);
if (!$cid) { echo("ERROR: " . mysql_error() . "\n");    }

Initial URL

                                

Initial Description
Use to connect to MySQL db. Use in a 'db_connect.inc' type file.

Initial Title
MySQL DB Connect

Initial Tags

                                

Initial Language
PHP