#31063 [Opn->Bgs]: dreamweaver canot connect to mysql due to php "mysql_connect()" error

From: Date: Sun, 12 Dec 2004 01:02:45 +0000
Subject: #31063 [Opn->Bgs]: dreamweaver canot connect to mysql due to php "mysql_connect()" error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70060@lists.php.net to get a copy of this message
ID: 31063 Updated by: johannes@php.net Reported By: belpoub at yahoo dot ca -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: win XP PHP Version: 5CVS-2004-12-12 (dev) New Comment: MySQL support is not enabled, try to load php_mysql.dll in your php.ini and check the output of phpinfo(); Previous Comments: ------------------------------------------------------------------------ [2004-12-12 01:28:46] belpoub at yahoo dot ca Description: ------------ Macromedia Dreamweaver 6 and 7 and 7.1 cannot connect to mysql due to a php 5 error. Going back to php4 solve the problem. ** Here line from error log in the Apache server: [Sat Dec 11 18:16:57 2004] [error] PHP Fatal error: Call to undefined function mysql_connect() in c:\\program files\\apache group\\Apache\\htdocs\\php-test\\_mmserverscripts\\mysql.php on line 49 ** here the code from the php page dramweaver creates to connect to the database: function Open() { if ($this->connectionId = mysql_connect($this->hostname, $this->username, $this->password)) { $this->isOpen = ($this->database == "") ? true : mysql_select_db($this->database, $this->connectionId); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31063&edit=1

« previous php.bugs (#70060) next »