my website project problem..... new to html

Associate
Joined
8 Jan 2012
Posts
3
Location
Berkshire
Hi

Ive begun creating my own little website. Nothing special or exciting.

I have registration/login set up with db, have a textbox with submit button that shows whats been written ( <?php echo $_GET["message"]; ?>. ) but the posts written dont save to the db and just appear as a line of text.

Id like the posts to save to the db and the written posts to appear in a textbox. im really struggling to find the answer, i know this is quite basic but ive been googling for days!

thanks
 
you need to connect to the database and then use SQL to write the "message" to a set field.

I would suggest you look at getting the Head first PHP & MySQL book/pdf. think it covers this in the first chapter.
 
for now id be happy if the posts werent saved in the db, to have a functioning site to play with would be fine!

if i can get the submitted info i didnt think it would be too hard to have it come up in a box rather than as a line of text :(
 
A fantastic place to use for help is StackOverflow which is an online programming Q&A site. Make sure you read the rules first (nothing major, but it helps get your question answered) and make sure you do some research first (i.e. check Google!).
 
Back
Top Bottom