Create a page called phpinfo.php. In it put <?php phpinfo() ?>. Search for MySQL. You probably don't have MySQL support in your installation.


Leandro de Oliveira wrote:


I want test MySQL with PHP, for that I wrote this:

<head><title>Test MySQL</title></head>
$con = mysql_connect("localhost", "lehphyro", "");
$success = mysql_select_db("mysql", $conexao);
if ($success > 0)
echo "Success!!";
else {
echo "Failure!!";
echo mysql_error();

But i received "Call to undefined function mysql_connect() on line 5"

Can anyone help me?


Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!

This message has been scanned for viruses and
dangerous content by MailScanner, and is believed to be clean.

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to