Home > Php Fatal > Php Fatal Error Call To Undefined Function Mysql_create_db

Php Fatal Error Call To Undefined Function Mysql_create_db

PHP Developers NetworkA community of PHP developers offering assistance, advice, discussion, and friendship. 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. 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. Pudieras por favor poner el script de como estas ejecutandolo?. this contact form

forgot to uncomment something?thanks for all the helpOptions:Reply•QuoteGo to:Forum List•Message List•Search•Log InSorry, only registered users may post in this forum.Click here to login Register Help Remember Me? Does AAA+BBB+CCC+DDD=ABCD have a solution for distinct digits A,B,C,D? net (added by postmaster () pne ! I solved it the following way after a number of attempts to follow the pieces of advice in the forums.

Can a nuclear detonation on Moon destroy life on Earth? Ifyou're using the packaged version for your OS (of PHP), check that youinstalled the php-mysql package (your package manager should let yousearch for it).If you're using a self-compiled PHP, sounds like Any pointers?

You can check if "php.ini" is read from the right directory. I also tried this,mysql_create_db("moviesite", $connect) or die(mysql_error());andmysql_create_db("moviesite", "$connect") or die(mysql_error());Mark Sargent. Code looks identical to the book's. What's difference between these two sentences?

If you're using a self-compiled PHP, sounds like you didn't compile in MySQL(i) support. Cheers.Mark Sargent. Browse other questions tagged php mysql or ask your own question. get redirected here Armageddance, 5 июл 2011 #1 night_flash Новичок Сообщения: 7 Adress: Country: Location on map: Проблема может быть в том, что Вы отчаянно не хотите самостоятельно поискать решение проблемы, а именно: Fatal

reply | permalink Daevid Vincent //[dv] depricated //http://us2.php.net/manual/en/function.mysql-create-db.php //return mysql_create_db($name, $db); //[dv] this is not a good way to do this, as it doesn't tell you if it succeeded or not. What could be causing this? Code looksidentical to the book's. Mark Sargent.

If you're using the packaged version for your OS (of PHP), check that you installed the php-mysql package (your package manager should let you search for it). http://stackoverflow.com/questions/4103054/what-caused-this-call-to-undefined-function-mysql-connect-error-in-php But if you're looking to do it with PHP, try this:Options:Reply•QuoteRe: Creating a Database Posted by: Cheers.Mark Sargent. Carrying Metal gifts to USA (elephant, eagle & peacock) for my friends Words that are both anagrams and synonyms of each other How do you say "you all" in Esperanto?

Then, comment out the browscap setting under that by placing a semicolon before it. http://newmexicosupercomputer.com/php-fatal/php-fatal-error-call-to-undefined-function-mysql-connect-windows.html Where's the 0xBEEF? Just type in your browser "localhost/index.php". PHP info has the following info about MySQL: mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 4.0.20 MYSQL_MODULE_TYPE external MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE -I/usr/include/mysql MYSQL_LIBS -L/usr/lib

Last edited by dien; 05-27-2006 at 12:50 AM. Reduce function is not showing all the roots of a transcendental equation Why isn't tungsten used in supersonic aircraft? Discussion Navigation viewthread | post Discussion Overview groupphp-general @ categoriesphp postedMay 27, '06 at 10:02a activeMay 30, '06 at 2:35a posts7 users5 websitephp.net Preferences responses expanded Hotkey:s font variable Hotkey:f user navigate here 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:

I have deleted the PHP5.ini file from the server, but the error still hasn't gone away, maybe it needs some time? Then again, if you have the browscap.ini file (probably c:\windows\system32\browscap\browscap.ini though I don't remember for sure), you can point it to the correct path. The time now is 12:25 AM.

Movie about a board-game that asks the players touchy questions Why are planets not crushed by gravity?

Thats it. I needed to change from PHPIniDir 'c:\PHP\' to PHPIniDir 'c:\PHP' Pay the attention that the last slash disturbed everything! Are there any historically significant examples? 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).

All rights reserved Home Forums Articles Badges Privacy Policy Support Sitemap Newsletter Signup Free Web Developer Tools

WampServer Apache, PHP, MySQL on Windows Home forumBack to WampServerpresentationDownloadsAddonsTrainingsAlter Way Go Cheers.Hi All,seems that I was using a deprecated function. se> Date: 2006-05-27 5:05:51 Message-ID: 446E043B001AC667 () pne-smtpout1-sn1 ! his comment is here Reply With Quote Quick Navigation Database Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums PHP Help General Help Newbies Database Install Coding Code Critique Upgrading

That worked! Here's the Code in question: session_start(); $hostname = "test.com"; $user = "root"; $pw = "passwd"; $connection = mysql_connect($hostname,$user,$pw) or die("couldnt connect to db"); $db = mysql_select_db ('mydb',$connection) or die("couldnt find db"); I have a new guy joining the group. Mark Sargent.

share|improve this answer answered Nov 5 '10 at 2:13 alex 267k129653807 Strangely enough function_exists('mysql_connect') prints 1 –Doug Molineux Nov 5 '10 at 2:15 'mistake' is putting it Also, see what function_exists('mysql_connect') says. Dev Shed Forums Navigation Forums Tools Newsletter Signup Articles Help Devshed Network Developer Shed ASP Free Dev Shed Dev Articles Dev Hardware Tutorialized SEO Chat Scripts Codewalkers Web Hosters Dev Mechanic Join 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

Try and find an entry for MySQL in phpinfo();. 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 Not the answer you're looking for? The code of index.php is the following: There is the row (not far from the top) called "Loaded Configuration File".

php mysql share|improve this question edited Dec 24 '12 at 19:40 hakre 134k26216390 asked Nov 5 '10 at 2:09 Doug Molineux 4,5471667125 add a comment| 4 Answers 4 active oldest votes Cheers.