[ACCEPTED]-Outputting to textarea from database-html

Accepted answer
Score: 18

You enter the value between textarea tags.

<textarea name = "course_id" cols=40  rows=3>
<?php echo $row['course_id'] ?>


Score: 6

textarea doesn't have value attribute. You 2 have to echo in between the tags. The correct 1 code would be:

<textarea name = "course_id" cols=40  rows=3 ><?php echo $row['course_id']; ?></textarea>
Score: 1

Check this out

There is no value field for Textarea

So you 1 need to give your value inside the <textarea><?php echo $yourdatabaseResult;?></textarea> tags

Score: 0

echo your data between tags follow this step 1 :-

<?php echo $showdbdata; ?>
Score: 0

echo your data in textarea for laravel

<textarea type="text" name="job_detail" class="form-control" style="width: 100%; height: 150px; ">{{  $job[0]->job_detail }}</textarea>


More Related questions