madchild24
15-11-2005, 10:56 PM
<?
ob_start(); // allows you to use cookies
$conn = mysql_connect("localhost","madc6349_madchil","cococo");
mysql_select_db(madc6349_mad) 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.
?>
at the mysql table has following
id
username
pass
email
location
aim
msn
is there anyway i can make this mysql script into a flatfile instead
as my mysql is stable (bad uptime)
ob_start(); // allows you to use cookies
$conn = mysql_connect("localhost","madc6349_madchil","cococo");
mysql_select_db(madc6349_mad) 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.
?>
at the mysql table has following
id
username
pass
location
aim
msn
is there anyway i can make this mysql script into a flatfile instead
as my mysql is stable (bad uptime)