[PHP]Write in a HTML?

Hello guys,

I have a small question, i’m developing a CMS for a site…and now i’m stuck with a little problem: From the backend i send a text to a database and i want that script to be writen in another file.
Exemple: i send from send.php to mydatabase and after the db it’s filled up with datas i want those datas to be printed (write) in index.php. I’m thinking to use fetch_array in index.php. Do you have anyideea how i can do this very easy and quicklly?:kommie:

Thank in advance, btibia!

If I understand you correctly, you want to extract data from the database.


$getdata = mysql_query("SELECT * FROM databasenamehere");
while ($row = mysql_fetch_array($getdata)) {
All data you want to be pulled form the database goes here

eg.

echo ""$row['rowname']" this will show row data"
}


thx man!