Php 5.3 Fatal Error Call To Undefined Function Mysql_connect
Contents |
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 more about Stack Overflow the company call to undefined function mysql_connect() in php Business Learn more about hiring developers or posting ads with us Stack Overflow Questions call to undefined function mysql_connect() xampp Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, call to undefined function mysql_connect() windows just like you, helping each other. Join them; it only takes a minute: Sign up Undefined function mysql_connect() up vote 11 down vote favorite 7 I have ran aptitude install php5-mysql (and restarted MySQL/Apache 2), but
Call To Undefined Function Mysql_connect() Linux
I am still getting this error: Fatal error: Call to undefined function mysql_connect() in /home/validate.php on line 21 phpinfo() says the /etc/php5/apache2/conf.d/pdo_mysql.ini file has been parsed. php mysql ubuntu mysql-connect undefined-function share|improve this question edited Feb 26 at 14:39 Peter Mortensen 10.3k1369107 asked Dec 11 '12 at 17:12 user1765369 1282213 How about other built in PHP/MySql functions? Do they work? –samayo Dec 11 '12 at 17:16 Perhaps not, as I call to undefined function mysql_connect() codeigniter have tried entering incorrect user/pass and my 'or die' statement is not showing! –user1765369 Dec 11 '12 at 17:22 add a comment| 10 Answers 10 active oldest votes up vote 19 down vote accepted Well, this is your chance! It looks like PDO is ready; use that instead. Try checking to see if the PHP MySQL extension module is being loaded: If it's not there, add the following to the php.ini file: extension=php_mysql.dll share|improve this answer edited Feb 26 at 14:40 Peter Mortensen 10.3k1369107 answered Dec 11 '12 at 17:13 wanovak 4,6081425 Is this a better way to connect to a database? I will look into it but I would really like to get this working first as it worked previously until I moved to a new server. –user1765369 Dec 11 '12 at 17:15 2 It is. mysql_* functions are dangerous and deprecated as of PHP 4.1. Check your Apache error logs and restart the server. Does that work? –wanovak Dec 11 '12 at 17:16 I've tried restarting the server, still happens. –user1765369 Dec 11 '12 at 17:21 I'm using xampp, after adding that line to php.ini I get the following message in apache error.log Unable to load dynamic library '\\xampp\\php\\ext\\php_mysql.dll –maufkk Jan 9 at 1:17 @defmx Do
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 proceed. To start call to undefined function mysql_connect() ubuntu viewing messages, select the forum that you want to visit from the selection below. Page
Call To Undefined Function Mysql_connect() Centos
1 of 2 12 Last Jump to page: Results 1 to 15 of 21 Thread: [RESOLVED] i am Fatal error: Call to undefined
Call To Undefined Function Mysql_connect() Php 7
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 Threaded Mode 02-08-2010,10:06 AM #1 thread_PHP http://stackoverflow.com/questions/13825108/undefined-function-mysql-connect 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 to others, even the dull and ignorant, they too http://board.phpbuilder.com/showthread.php?10371200-RESOLVED-i-am-Fatal-error-Call-to-undefined-function-mysql_connect()-using-php5-2-mysql-4-1 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 and ignorant, they too have their story. " Reply With Quote 02-10-2010,05:25 AM #5 halojoy View Profile Vi
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: https://forums.iis.net/t/prev/1230334 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 call to 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 call to undefined 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 appreciate your help. Reply DropPhone 297 Posts MicrosoftModerator Re: PHP Fatal error: Call to undefined function mysql_connect() Mar 22, 2016 07:42 PM|DropPhone|LINK Onret I have the same problem (exept running on iis10 and have php 7.0.3). MySQL_connect() has been deprecated in PHP7. See http://stackoverflow.com/questions/10615436/fatal-error-call-to-undefined-function-mysql-connectand http://php.net/manual/en/functio