Call to undefined function mysql_connect()

From: Date: Sun, 27 Jun 2004 14:18:39 +0000
Subject: Call to undefined function mysql_connect()
Groups: php.db 
Request: Send a blank email to php-db+get-35005@lists.php.net to get a copy of this message
Hi! I want test MySQL with PHP, for that I wrote this: <html> <head><title>Test MySQL</title></head> <body> <?php $con = mysql_connect("localhost", "lehphyro", ""); $success = mysql_select_db("mysql", $conexao); if ($success > 0) echo "Success!!"; else { echo "Failure!!"; echo mysql_error(); } ?> </body> </html> But i received "Call to undefined function mysql_connect() on line 5" Can anyone help me? Thanks! --------------------------------- Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!

« previous php.db (#35005) next »