Page 1 of 1

New to php

Posted: Wed Jun 06, 2007 7:42 am
by jameeez
Hello

I am looking to implement a php/mysql script on my website that allows me or someone else to change a small customised text box on the front page with news/announcements e.t.c with a simple gui accessible with ie.

could you point me in the right direction about how gto code this thanks

james

Posted: Wed Jun 06, 2007 8:20 am
by djwk
You could easily echo the text directly to the page without the use of a text box.

To do that:

Code: Select all

<?php

$news = file_get_contents('newsfile.txt');

echo $news;

?>

Posted: Wed Jun 06, 2007 10:21 am
by aceconcepts
I would imagine you would like some formatting control of the text you display on your page!

If so, take a look at FCKEditor (enter it in a search engine and you'll find it).

A very nice editor.