php5/MySQL 4.1.1 connection error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am testing to use php5.0.0b3 and connect to MySQL 4.1.1 encountered
connection problem:-

<?php
    $link = mysqli_connect("localhost", "purct", "prcyct","purct")
    or die("Could not connect: " . mysql_error());
    echo "Connected successfully";
    mysql_close($link);
?>


Error message:
---------------
[04-Feb-2004 14:45:07] PHP Fatal error:  Call to undefined function
mysql_connect() in D:\Purct\New1x.php on line 1

Please help to advise what went wrong ?

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux