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
Fatal Error Call To Undefined Function Mysql_connect Xampp
Stack Overflow the company Business Learn more about hiring developers or posting ads with fatal error call to undefined function mysql_connect windows us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is
Fatal Error Call To Undefined Function Mysql_connect Ubuntu
a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function mysql_connect() up vote -1 down vote favorite I fatal error call to undefined function mysql_query 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 fatal error call to undefined function mysql_pconnect 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 134k26216387 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 mysql are installed. –nitxx Oct 8 '12 at 14:27 | show 1 more comment 5 Answers 5 active oldest votes up vote 2 down vote if you are working on linux [debian] apt-get install php5-mysql because your PHP is not able to talk with mysql share|improve this answer answered Nov 24 '14 at 11:21 Divyesh Singhal 212 add a comment| up vote 1 down vote You should
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 Business Learn more about hiring
Fatal Error Call To Undefined Function Mysqli_connect
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question fatal error call to undefined function mssql_connect x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join
Php Call To Undefined Function Mysql_connect
them; it only takes a minute: Sign up Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2 up vote 6 down vote favorite 3 Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2 I've http://stackoverflow.com/questions/12783589/fatal-error-call-to-undefined-function-mysql-connect spent 11 hours today trying to get past this ONE problem. I have installed: MySQL 5.1 Apache 2.2.14 PHP 5.2.17 these were the versions referred to in the book "PHP and MySQL". When I run the script: where localhost, root and password are the REAL values for this given test system and all I have seen is: Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2 php share|improve this question http://stackoverflow.com/questions/5179535/fatal-error-call-to-undefined-function-mysql-connect-in-c-apache-htdocs-test edited Mar 3 '11 at 10:36 Pekka 웃 304k93697913 asked Mar 3 '11 at 10:33 user389055 911513 add a comment| 3 Answers 3 active oldest votes up vote 14 down vote accepted Uncomment the line extension=php_mysql.dll in your "php.ini" file and restart Apache. Additionally, "libmysql.dll" file must be available to Apache, i.e., it must be either in available in Windows systems PATH or in Apache working directory. See more about installing MySQL extension in manual. P.S. I would advise to consider MySQL extension as deprecated and to use MySQLi or even PDO for working with databases (I prefer PDO). share|improve this answer answered Mar 3 '11 at 10:37 binaryLV 6,7421933 1 use phpinfo() to find out which php.ini is the right one. –Pekka 웃 Mar 3 '11 at 10:38 which php.ini is the right one mins? –user389055 Mar 3 '11 at 10:41 "Uncomment the line extension=php_mysql.dll in your php.ini and restart Apache" i did this allready –user389055 Mar 3 '11 at 10:42 Ensure that extension_dir in "php.ini" points to the correct directory (e.g., "C:/Web/php-5.3.5-Win32-VC6-x86/ext" in my case). –binaryLV Mar 3 '11 at 10:44 thanks it done.. –user389055 Mar 3 '11 at 11:00 | show 2 more comments up vote 1 down vote I had the similar issue. I solved it the following way after a number of attempts to follow the pieces of advice in th
Du siehst YouTube auf Deutsch. Du kannst diese Einstellung unten ändern. Learn more You're viewing YouTube in German. You can change this preference below. Schließen https://www.youtube.com/watch?v=UUEWmOYg7Xw Ja, ich möchte sie behalten Rückgängig machen Schließen Dieses Video ist nicht verfügbar. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste Warteschlange __count__/__total__ [FIX] Call to undefined function mysql connect() in PHP - How to fix errors ? How To Fix Errors ? AbonnierenAbonniertAbo beenden2121 Wird geladen... Wird geladen... Wird verarbeitet... call to Hinzufügen Möchtest du dieses Video später noch einmal ansehen? Wenn du bei YouTube angemeldet bist, kannst du dieses Video zu einer Playlist hinzufügen. Anmelden Teilen Mehr Melden Möchtest du dieses Video melden? Melde dich an, um unangemessene Inhalte zu melden. Anmelden Statistik 1.645 Aufrufe 8 Dieses Video gefällt dir? Melde call to undefined dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 9 0 Dieses Video gefällt dir nicht? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 1 Wird geladen... Wird geladen... Wird geladen... Die Bewertungsfunktion ist nach Ausleihen des Videos verfügbar. Diese Funktion ist zurzeit nicht verfügbar. Bitte versuche es später erneut. Veröffentlicht am 15.04.2016[FIX] Call to undefinedfunction mysql connect() in PHP - How to fix errors ?Thank for watching ! Kategorie Menschen & Blogs Lizenz Standard-YouTube-Lizenz Mehr anzeigen Weniger anzeigen Wird geladen... Anzeige Autoplay Wenn Autoplay aktiviert ist, wird die Wiedergabe automatisch mit einem der aktuellen Videovorschläge fortgesetzt. Nächstes Video Fatal error Call to undefined function mysql connect() - Dauer: 3:01 thien nguyen 8.817 Aufrufe 3:01 Fatal error: Call to undefined function mysql_connect() in in xampp php school - Dauer: 1:18 PHP School 681 Aufrufe 1:18 mengatasi Fatal error Call to undefined function sessi