converting a mysql entry to a text by PHP

Codes here !

Moderators: macek, egami, gesf

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

Post by Oleg Butuzov » 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)
}

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Tue Feb 04, 2003 3:33 am


Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests