It is veru easy too start using dev-php with just php. But I wonder if you can't get it as easy to start with MySQL? My site needs both and without MySQL the only thing I see is "Can't connect"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you seen the example code included with dev-php? Just clic with the right button in the text area then examples>connect to MySQL.
Maybe you have to check the name of your database, password, etc. You can check why you cannot connect to the db using this code (I modified the original one from dev-php):
$dbhost = "localhost"; // The host where your database is
$dbname = "database"; // Your database name
$dbuser = "root"; // The user name
$dbpass = "password"; // The user's password
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Error because of:".mysql_error());
mysql_select_db($dbname, $connect);
I hope this help you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is veru easy too start using dev-php with just php. But I wonder if you can't get it as easy to start with MySQL? My site needs both and without MySQL the only thing I see is "Can't connect"
Have you seen the example code included with dev-php? Just clic with the right button in the text area then examples>connect to MySQL.
Maybe you have to check the name of your database, password, etc. You can check why you cannot connect to the db using this code (I modified the original one from dev-php):
$dbhost = "localhost"; // The host where your database is
$dbname = "database"; // Your database name
$dbuser = "root"; // The user name
$dbpass = "password"; // The user's password
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Error because of:".mysql_error());
mysql_select_db($dbname, $connect);
I hope this help you