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).