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)
}
converting a mysql entry to a text by PHP
Moderators: egami, macek, gesf
-
- Last Samuray
- Posts: 824
- Joined: Sun Jun 02, 2002 3:09 am
man , i just give algiritm =)
read more about querys
and about file's functions
http://www.php.net/manual/en/function.fopen.php
http://www.php.net/manual/en/function.fwrite.php
http://www.php.net/manual/en/function.fclose.php
read more about querys
and about file's functions
http://www.php.net/manual/en/function.fopen.php
http://www.php.net/manual/en/function.fwrite.php
http://www.php.net/manual/en/function.fclose.php