Thread: Mysql Problems.
View Single Post
Old Nov 23rd, 2004, 4:55 AM   #1
Xko
Newbie
 
Join Date: Sep 2004
Posts: 18
Rep Power: 0 Xko is on a distinguished road
As a complete novice to anything MySQL related i would like to add a small strategy game from hotscripts.com to my site. The thing is i'm not sure what info the file is asking for.

I have to configure the following .php file...

<?
// Enter your MySQL settings below

$mysql_server = "";
$mysql_user = "";
$mysql_password = "";
$mysql_database = "";

$connection = mysql_connect("$mysql_server","$mysql_user","$mysql_password") or die ("Unable to connect to MySQL server.");
$db = mysql_select_db("$mysql_database") or die ("Unable to select requested database.");

	$PHP_PHAOS_USER = $_COOKIE["PHP_PHAOS_USER"];
	$PHP_PHAOS_PW = $_COOKIE["PHP_PHAOS_PW"];

 foreach($_GET as $key=>$value) {
 	eval("$$key = \"$value\";");
 }   
 foreach($_POST as $key=>$value) {
 	eval("$$key = \"$value\";");
 }   
?>

But i don't know what i should enter and don't want to mess anything up!

I know it's asking for my sql settings but i'm unsure what they are...
Xko is offline   Reply With Quote