Php Fatal Error Mysql_connect
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Fatal Error Call To Undefined Function Mysql_connect() Xampp
workings and policies of this site About Us Learn more about fatal error call to undefined function mysql_connect() windows Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Fatal Error: Call To Undefined Function Mysql_query()
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. fatal error call to undefined function mysql_connect() in php Join them; it only takes a minute: Sign up Fatal error: Call to undefined function mysql_connect() up vote -1 down vote favorite I am getting this error Fatal error: Call to undefined function mysql_connect() in /var/www/html/test1.php on line 8 for the following code: I have PHP, MYSQL, php-Mysql installed in my system: [root@localhost ~]# rpm -qa | grep mysql php-mysql-5.3.3-3.el6_2.8.i686 mysql-devel-5.1.61-4.el6.i686 mysql-server-5.1.61-4.el6.i686 mysql-bench-5.1.61-4.el6.i686 mysql-libs-5.1.61-4.el6.i686 mysql-5.1.61-4.el6.i686 [root@localhost ~]# rpm -qa | grep php php-common-5.3.3-3.el6_2.8.i686 php-5.3.3-3.el6_2.8.i686 php-mysql-5.3.3-3.el6_2.8.i686 php-cli-5.3.3-3.el6_2.8.i686 php-pdo-5.3.3-3.el6_2.8.i686 output of phpinfo() : http://jsfiddle.net/nit8899/GZ4f7/ Also I have edited the /etc/php.ini file: extension=mysql.so But even then I am getting this error. php share|improve this question edited Oct 9 '12 at 19:38 hakre 134k26216390 asked Oct 8 '12 at 14:17 nitxx 21114 I cant view the linked area from work - does it say MySQL is enabled? –BugFinder Oct 8 '12 at 14:18 Possible duplicate of stackoverflow.com/questions/10615436/… –Marco Pace Oct 8 '12 at 14:19 2 Why are you writing new code using mysql_* anyway? –Quentin Oct 8 '12 at 14:19 3 apt-get install php5-mysql –Dan Lee Oct 8 '12 at 14:20 Yes it says both php and mysq
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn
Call To Undefined Function Mysql_connect() Php 7
more about Stack Overflow the company Business Learn more about hiring developers or posting fatal error: uncaught error: call to undefined function mysql_select_db() ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Fatal Error: Call To Undefined Function Mysql_select_db()
Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP/Apache: PHP Fatal error: Call to undefined function mysql_connect() up http://stackoverflow.com/questions/12783589/fatal-error-call-to-undefined-function-mysql-connect vote 19 down vote favorite 2 I have MySQL (5.5.23 Community Server), Apache (2.2), and PHP (5.3.13) running on a Fedora 15 machine (64-bit). Each works with no problem on their own. I thought that PHP was configured/compiled to work with MySQL, but when I try to load any PHP web page which makes a MySQL call then I get the above noted fatal error (in the Apache error http://stackoverflow.com/questions/15346605/php-apache-php-fatal-error-call-to-undefined-function-mysql-connect log). PHP works okay on its own though, through Apache and at the command line. When I run php -i from the command line then sure enough it shows all the MySQL bits and pieces, but when I load a page displaying phpinfo() then there are no MySQL modules mentioned. I've also tried un-commenting "extension=mysql.so" in php.ini, but PHP then complains with "PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so'." (even though the module does reside there). But then I'm not entirely certain whether that line is required to be un-commented or not. [correction: the error stated was actually due to a typo, but running from the command line shows that the module is already loaded anyway - there is a warning from PHP that says so.] I've also disabled SELinux; stopped/restarted Apache numerous times; yummed MySQL-Devel, in case it made any difference; and, it seems, every other possible thing. If I run a little PHP test script from the command line, to access the MySQL database, then it works with no problem, so PHP does know about MySQL, but when it runs under Apache it seems to have no clue that MySQL even exists. I've been trying on and off for mon
using php5.2,mysql 4.1 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to http://board.phpbuilder.com/showthread.php?10371200-RESOLVED-i-am-Fatal-error-Call-to-undefined-function-mysql_connect()-using-php5-2-mysql-4-1 proceed. To start viewing messages, select the forum that you want to visit from https://forums.iis.net/t/prev/1230334 the selection below. Page 1 of 2 12 Last Jump to page: Results 1 to 15 of 21 Thread: [RESOLVED] i am Fatal error: Call to undefined function mysql_connect() using php5.2,mysql 4.1 Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to fatal error Threaded Mode 02-08-2010,10:06 AM #1 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 [RESOLVED] i am Fatal error: Call to undefined function mysql_connect() using php5.2,mysql 4.1 hi all i am getting following error while i am using php 5.2.12 and mysql4.1 in windows Fatal error: Call to undefined function mysql_connect() please help me to solve my problem thanks in advance "Speak your truth quietly and clearly, and listen call to undefined to others, even the dull and ignorant, they too have their story. " Reply With Quote 02-08-2010,10:25 AM #2 halojoy View Profile View Forum Posts Visit Homepage phpMaster Join Date Jun 2005 Location Europe Posts 2,992 Run a phpinfo() to see if the php_mysql extension module is loaded. If it is not, you should activate mysql extension. For example in php.ini: extension=php_mysql.dll PHP Code:
Apache2.4.18 (Win64) / PHP5.6.19 / MySQL5.7.11 / phpMyAdmin4.6.0 Reply With Quote 02-08-2010,02:23 PM #3 bradgrafelman View Profile View Forum Posts Visit Homepage Pna lbh ernq guvf¿ Join Date Jul 2004 Location Kansas City area Posts 19,435 Moved to Install forum. If enabling the "extesion=" line in your php.ini file doesn't work, read over the FAQ stickied at the top of this forum (specifically, the post entitled "2. PHP5 :: Can't use mysql_*() functions"). If neither of those solves your problem, let us know. Reply With Quote 02-10-2010,05:03 AM #4 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 hi halojoy i am sending you following files containing my phpinfo files Attached Images 3.jpg (92.2 KB, 3165 views) "Speak your truth quietly and clearly, and listen to others, even the dull an
phpinfo();
?>
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums Partner and Community Forums PHP Community PHP Fatal error: Call to undefined function mysql_connect() PHP Fatal error: Call to undefined function mysql_connect() RSS 3 replies Last post Mar 22, 2016 07:42 PM by DropPhone ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply PacoRenteria 1 Post PHP Fatal error: Call to undefined function mysql_connect() Jan 22, 2015 05:43 PM|PacoRenteria|LINK Greetings Fellows, I am having this problem in just one page! PHP Fatal error: Call to undefined function mysql_connect() I am using IIS8.0 with PHP 5.3, the problem is ONLY on one page and I have tried everything that has come to my mind. Even replaced the code with other copied from a working page and surprisingly, it doesn't work. I have checked and double checked the page sintaxis and still doesn't work. ¿any ideas? Thx in advance. mysql mssql_connect php Reply DropPhone 297 Posts MicrosoftModerator Re: PHP Fatal error: Call to undefined function mysql_connect() Jan 26, 2015 05:44 PM|DropPhone|LINK Just checking: is the extension=php_mysql.dll enabled inyour php.ini file? You may also need to uncomment the extension=php_pdo_mysql.dll and the extension=php_mysqli.dll lines as well. Thx! --E. mysql mssql_connect php Reply Onret 1 Post Re: PHP Fatal error: Call to undefined function mysql_connect() Mar 09, 2016 07:30 AM|Onret|LINK I have the same problem (exept running on iis10 and have php 7.0.3). I could only find "extension=php_mysqli.dll" in my .ini file and have tried to write in "extension=php_mysql.dll" and paste a downloaded php_mysql.dll in the /ext/ directory. Didn't work. I have also uncommented the lines you suggested. I would really app