bach Posted May 21, 2006 Share Posted May 21, 2006 Can you help I have got an if statement which is got an error ErrorFatal error: Call to undefined function: () in sam/db.php on line 22[code]if(!$connection = mysql_pconnect($host, $username, $password)){ $message = mysql_error(); echo $message."<br />"; die();}line 22 - elseif (!$mysql_select_db($database, $connection)){ $message = mysql_error(); echo $message."<br />"; die();}[/code] Quote Link to comment https://forums.phpfreaks.com/topic/10117-if-statement-problems/ Share on other sites More sharing options...
annihilate Posted May 21, 2006 Share Posted May 21, 2006 Try getting rid of the $ infront of mysql_select_db Quote Link to comment https://forums.phpfreaks.com/topic/10117-if-statement-problems/#findComment-37667 Share on other sites More sharing options...
bach Posted May 21, 2006 Author Share Posted May 21, 2006 [!--quoteo(post=375747:date=May 21 2006, 01:06 PM:name=annihilate)--][div class=\'quotetop\']QUOTE(annihilate @ May 21 2006, 01:06 PM) [snapback]375747[/snapback][/div][div class=\'quotemain\'][!--quotec--]Try getting rid of the $ infront of mysql_select_db[/quote]Thanks for your reply,I can't believe i missed it cheers Quote Link to comment https://forums.phpfreaks.com/topic/10117-if-statement-problems/#findComment-37668 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.