I'm trying to use PHP 4.2.3 in a database application. 

print "Connected?";
$dbcnx = mysql_connect("localhost","root","asda");
if (!$dbcnx) {
echo("<p>Unable to connect to database server.</p>");
}else {
print "Connected!";

Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/irm/test.php on line 3

While changing the line to 
$dbcnx = @mysql_connect("localhost","root","asda");
is in the MySQL example 

simply prints

and nothing more happens. My app isn't using the database (later on).
Never had this problem on 4.0.x which makes me a bit confused.

What am i doing wrong?


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to