PDA

View Full Version : mysql to flatfile



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)

nets
16-11-2005, 08:54 PM
You shouldn't of given your password out.

Dextrin
16-11-2005, 09:36 PM
sped -_- :8

madchild24
16-11-2005, 09:53 PM
lol its password to mysql big deal it doesn't matter

nets
16-11-2005, 09:58 PM
Can't you just paste all the data from your database into a text file, separating it with ||?

madchild24
16-11-2005, 10:03 PM
ya but like how to i get it to send the data to flatfile
what i change the config file to so it sends it to flatfile instead of database
oh and how u make that linE?

Want to hide these adverts? Register an account for free!