php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31063 dreamweaver canot connect to mysql due to php "mysql_connect()" error
Submitted: 2004-12-12 01:28 UTC Modified: 2004-12-12 02:02 UTC
From: belpoub at yahoo dot ca Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2004-12-12 (dev) OS: win XP
Private report: No CVE-ID: None
 [2004-12-12 01:28 UTC] 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);
		}




Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-12 02:02 UTC] johannes@php.net
MySQL support is not enabled, try to load php_mysql.dll in 
your php.ini and check the output of phpinfo(); 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 21:01:29 2024 UTC