I am trying to retrieve a value from mysql and put it into an Area box with php and I have been having some trouble's I wouldn't know how to go about this I would really appriciate some help. So far I have just made the textarea and retrieve and echo the query I want to be able to put the text from the query into the text area and be able to edit the text and then re submit it to the database. I can do the rest I just need to know how to get the query into the Textarea. Any help?

Recommended Answers

All 2 Replies

Member Avatar for diafol
<textarea><?php echo $output;?></textarea>

Put the relevant db output into the $output variable - do all this above the DTD and then simply echo it out inside the textarea. Simple.

Thanks sometimes all you need is a little direction figured it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.