Fatal Error Call To Undefined Function Mysql_connect Windows 7
Advertisement Autoplay When autoplay is enabled, a suggested video will automatically play next. Nothing. Not the answer you're looking for? Look in phpinfo() to see which file path is actually being used for php.ini... –Michael Berkowski Aug 31 '12 at 19:20 5 The mysql_* functions are deprecated, if you're developing his comment is here
Not the answer you're looking for? Join them; it only takes a minute: Sign up Fatal error: Call to undefined function mysql_connect() cannot solve up vote 0 down vote favorite I have searched this error in Google Working... After I modified with php.ini, I typed my html/php from MySQL book when I used dreamweaver.
Fatal Error Call To Undefined Function Mysql Connect
For example in php.ini: extension=php_mysql.dll PHP Code:
I am running Windows 7 (Apache 2.2 & PHP 5.2.17 & MySQL 5.0.51a), the syntax in the file "httpd.conf" (C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf) was sensitive to slashes. How much interest should I pay on a loan from a friend? Just type in your browser "localhost/index.php". Fatal Error: Uncaught Error: Call To Undefined Function Mysql_connect() In Xampp I needed to change from PHPIniDir 'c:\PHP\' to PHPIniDir 'c:\PHP' Pay the attention that the last slash disturbed everything!
I tried putting both the development and production (referenced above) files in all the directories that the above link specified. Why are empty blocks not all the same size? share|improve this answer edited Sep 18 '13 at 12:02 answered Sep 18 '13 at 11:36 Darius Miliauskas 1,1501129 thanks, that was it! Sign in to report inappropriate content.
The version of php I downloaded gave me two php.ini files: 1)php.ini-production and 2)php.ini-development I thought that was all gravy and every time I made a change to one, I did Call To Undefined Function Mysql_select_db() share|improve this answer edited Dec 18 '11 at 15:37 answered Dec 18 '11 at 13:51 Bryan 1,6611022 I am editing the correct php.ini - well when I try for Thx in advance. How do I help minimize interruptions during group meetings as a student?
- Make a copy of the string in a .txt file for back up (it might be empty)--- set your environmental variables...
- Security Patch SUPEE-8788 - Possible Problems?
- httpd.conf show that the php.ini used by *Apache is inside: LoadModule php5_module "C:\php\php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "c:/php" You should change PHPIniDir "to your php directory, which inlcudes your php.ini file"
- I am reposting the solution because it could be helpful for others.
Windows 7 Fatal Error C0000034
Bam. this content Determine if a coin system is Canonical Can a Legendary monster ignore a diviner's Portent and choose to pass the save anyway? Navigate:Previous Message•Next Message Options:Reply•Quote Subject Written By Posted Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\practice\testsql.php on line 17 Heidi -- 02/13/2006 12:38PM Re: Fatal error: Call to Just type in your browser "localhost/index.php". Fatal Error Call To Undefined Function Mysql_connect() In Php
But phpinfo(); still does not show anything about MySQL. Posts 8,232 Please consider marking your thread RESOLVED using the link under "Thread Tools" on the bar above the first post. So, in order to make it work I did the following step. weblink Loading...
Loading... Uncaught Error: Call To Undefined Function Mysql_select_db() But cannot access Phpmy AdminI need to access it through localhost.As soon as i type the URL :: htttp://localhost/phpmyadmin, i get the following error::mysqli extension is missing, pls check php configuration.Advice??Options:Reply•QuoteRe: I suspect you might be editing the wrong php.ini file (there might be multiple copies).
dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 ---
So, if there is nothing added, then the problem could be that your "php.ini" is not read, even you uncommented (extension=php_mysql.dll and extension=php_mysqli.dll). Reply With Quote 02-01-2012,06:55 AM #9 Weedpacket View Profile View Forum Posts Pedantic Curmudgeon Join Date Aug 2002 Location General Contact Unit "Coping Mechanism" Posts 22,322 So did you read the more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Call To Undefined Function Mysql_connect() Php 7 Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New?
Please check your PHP configuration. This comes when i try to access "" PHPmyadmin" from the Wampserver localhost page.Advice?Options:Reply•QuoteRe: Fatal error: Call Run this script I have made. need book id, written before 1996, it's about a teleport company that sends students learning to become colonists to another world How would they learn astronomy, those who don't see the check over here MySQL and PHP are working together!
How to tell why macOS thinks that a certificate is revoked? 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 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 You may also need to uncomment the extension=php_pdo_mysql.dll and the extension=php_mysqli.dll lines as well.
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". yup, I did before and tried everything before I posted my message here. The time now is 10:24 AM. Sign in Transcript Statistics 60,025 views 108 Like this video?
When I first encountered the problem I loaded index.php (on my local server) and looked at the sixth box from the top called "Loaded configuration file". PHP5 :: Can't use mysql_*() functions").