For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > June 2004 > Call to undefined function mysql_connect()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Call to undefined function mysql_connect()
Leandro de oliveira

2004-06-27, 3:55 pm

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!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com