converting a mysql entry to a text by PHP

Codes here !

Moderators: egami, macek, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Tue Feb 04, 2003 12:50 am

modify this code cuts and you will get your script

//Query
SELECT * FROM `liriks`


after that loop
While ($data=mysql_fetch_array($your_query))
{
//save as file

$file=fopen ("$data[art_name] - $data[title]", "a");
fwite($file, $data['content']);
fclose($file)
}


Post Reply