RE: undefined mysql_connect() ???

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

 




Thanks for your reply, Bruce.
I hadn't thought of running it from the command-line as a test.

Here is the entire code and the result (which was the same):

Script started on Tue 21 Jun 2005 03:49:17 PM CDT

============ THE TEST CODE =========
[flw@linux4 tst]$ cat mysqltst.php <?php
$dbh = mysql_connect("localhost");
print "dbh=$dbh\n";
exit;
?>

============ THE RESULT =========
[flw@linux4 tst]$ php mysqltst.php PHP Fatal error: Call to undefined function: mysql_connect() in /home/flw/php/tst/mysqltst.php on line 2
Content-type: text/html
X-Powered-By: PHP/4.3.9

[flw@linux4 tst]$ exit

Script done on Tue 21 Jun 2005 03:49:34 PM CDT

 --frank--

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux