Thread: Need a genius.
View Single Post
(#4)
Old
MYMOMMAGOTBEEF is Offline
Lots o' Posts
MYMOMMAGOTBEEF is on a distinguished road
 
Posts: 471
Join Date: Jul 2006
Location: MN
Send a message via AIM to MYMOMMAGOTBEEF
Default 08-09-2006, 01:05 AM

Here's the code that im supposed to use
PHP Code:
<?
   ob_start
(); // allows you to use cookies
   
$conn mysql_connect("localhost","DATABASE USERNAME","DATABASE PASSWORD");
   
mysql_select_db(DATABASE NAME) or die(mysql_error());
   
//fill in the above lines where there are capital letters.
   
$logged MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]' AND password = '$_COOKIE[pass]'");
   
$logged mysql_fetch_array($logged);
   
//the above lines get the user's information from the database.
?>
And then I edited it to
PHP Code:
<?
   ob_start
(); // allows you to use cookies
   
$conn mysql_connect("localhost","davsou10_db","MyPASS");
   
mysql_select_db(davsou10_db) or die(mysql_error());
   
//fill in the above lines where there are capital letters.
   
$logged MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]' AND password = '$_COOKIE[pass]'");
   
$logged mysql_fetch_array($logged);
   
//the above lines get the user's information from the database.
?>
and I saved it as config.php as the tutorial told me.



[Made By Xplogen, Thanks ]
Reply With Quote