New to php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jameeez
Forum Newbie
Posts: 1
Joined: Wed Jun 06, 2007 7:34 am

New to php

Post 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
djwk
Forum Commoner
Posts: 56
Joined: Tue Mar 07, 2006 2:14 pm

Post 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;

?>
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post 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.
Post Reply