Re: mysql_query failure

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: mysql_query failure
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6684@lists.php.net to get a copy of this message
>$con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) >or die ("Cant connect"); >mysql_select_db($DB_NAME); Try: $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) or die ("Cant connect"); mysql_select_db($DB_NAME, $con); Also try and make your php functions like so: mysql_xxxxx() instead of: mysql_xxxxx () (loose the gap!) Hope that helps somewhat! ;) Russ #-------------------------------------------------------# "Believe nothing - consider everything" Russ Michell Anglia Polytechnic University Webteam http://gertrude.sipu.anglia.ac.uk/webteam r.j.michell@anglia.ac.uk +44 (0)1223 363271 ext 2331 www.theruss.com #-------------------------------------------------------#

« previous php.db (#6684) next »