Return to Snippet

Revision: 22880
at January 25, 2010 10:55 by ginoplusio


Initial Code
function connectDb() {
	// connect and set the
	// working db
	if (mysql_connect( DBHOST, DBUSER, DBPWD ) && mysql_select_db( DBNAME )) return true; else return false;
}

Initial URL
http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/

Initial Description

                                

Initial Title
MYSQL - PHP simple connect function

Initial Tags
mysql, php

Initial Language
PHP