---------------
SOLVED
---------------
PHP tought the php.ini is in C:\Windows.
---------------
SOLVED
---------------
PHP tought the php.ini is in C:\Windows.
Last edited by visitor; 04-17-2009 at 03:26 PM.
Hey I just met you
Now I'm not sure how it works when you run it on your own machine, but when you want to connect to a database you'd usually need to tell which database by name..?
Like this:
PHP Code:
<?php
DEFINE ('DB_USER', 'username');
DEFINE ('DB_PASSWORD', 'password');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'database_name');
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error());
@mysql_select_db (DB_NAME) OR die('Could not select the database: ' . mysql_error() );
?>
it means the same on my own machine
php has a problem with mysql because php cant define mysql_connect() function.
Hey I just met you
Maybe a bit late, but it'll help anyone else who has this problem. PHP must be compiled WITH mysql_support enabled. MySQL Support is disabled by default from version 5.x.x onwards.