probably a bad WAMP setup
Hi,
I wouldn't know much about coding with php, but I sort of understand it very basically and I think I have some issue with my WAMP online server because I can connect to the mysql database through an extension program in smartfox but I can't pass variables using it "normally".
I mean, I have a script to connect to mysql database that i used to be able to run from the broswer and now I can't. I've noticed that if I hardcode the variable values instead, it will work though.
Here's the script I use actually:
<?php
/* $db_host = "localhost";
$db_username = "root";
$db_pass = "*********";
$db_name = "test_database"; */
@mysql_connect("localhost", "root", "********") or die ("could not connect!");
mysql_select_db("test_database") or die ("No database!");
print "Succesful connection";
?>
if it were my WAMP settings, does anyone know what could have caused this? I would have a hard time describing my settings, but, as the last time, I simply let WAMP install by default. Perhaps, the time before that, when it had worked, I had installed IIS and stopped it in order to be able to use port 80. I can't remember... is it possible I need any other windows features I might have missed on restoring my computer?