Good day people! May i know how to assign value to a textarea the data from a database.

I tried the following codes but they didn't work.

<?php
echo "<textarea name='aaa' rows='4' cols='70' value='$abc'></textarea>" ?>
<textarea name="question" rows="4" cols="70" value="<?php echo $question2; ?>"></textarea>

please help me!

i already solved my problem.

here is the code:

<textarea name="abc" rows="4" cols="70"><?php echo $abc; ?></textarea>
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.