Hi, The prototype for mysql_connect is:
resource mysql_connect ( [string server [, string username [, string password [, bool new_link [, int client_flags ]]]]] ) As you can see you get parse error because the fourth argument should be boolean, not string. Cheers, Catalin 35: // Initialize MySQL database 36: $h = mysql_connect('localhost','localhost',constant("mysql_user"),constant("mysql _password")); 37: mysql_select_db('mjec_mjecnet', $h); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php