[PHP] Fatal error: Call to undefined function: mysql_connect()
Setup: 2 servers, one with PHP 4.1.2 and no MySQL installed, the other has MySQL and PHP 4.1.2 Problem: I am attempting to connect to the MySQL server from the server without MySQL, but I get the error that shows in the subject. Fatal error: Call to undefined function: mysql_connect() in /folder/index.php on line 11 I was told that maybe the extension for MySQL was not setup in PHP. I thought that maybe it was just because MySQL wasnt installed on the system I am working on, but it makes sense that I am not trying to access a database on the system I am working from, but trying to access one on a different server all together. What do you think? Thanks, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fatal error: Call to undefined function: mysql_connect()
Are you using the bundled MySQL libraries under Unix/Linux? What version of PHP are you running with what operating system? If MySQL compiled as a module that must be loaded? Jason Naintara Jain wrote: I get this error "Fatal error: Call to undefined function: mysql_connect() " in one script. whereas phpMyAdmin is installed in another directory and it works fine. Any ideas why? -Naintara -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fatal error: Call to undefined function: mysql_connect()
I get this error "Fatal error: Call to undefined function: mysql_connect() " in one script. whereas phpMyAdmin is installed in another directory and it works fine. Any ideas why? -Naintara -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fatal error: Call to undefined function: mysql_connect()
On Wednesday 05 March 2003 11:15, AD wrote: > I'm getting this error while testing the script below just for > connectivity. Mysql is running on XP and apache and php are on openbsd. It > seems like I don't have something configured right in php I guess but I'm > not sure. Here is the script: Search for the error in the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Aliquid melius quam pessimum optimum non est. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fatal error: Call to undefined function: mysql_connect()
I'm getting this error while testing the script below just for connectivity. Mysql is running on XP and apache and php are on openbsd. It seems like I don't have something configured right in php I guess but I'm not sure. Here is the script: \n"; while ($line = mysql_fetch_array($result)) { print "\t\n"; while(list($col_name, $col_value) = each($line)) { print "\t\t$col_value\n"; } print "\t\n"; } print "\n"; mysql_close($link); ?> Thanks in advance for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php