hi guys.
I am trying to post a data in textarea.
The data is not showing in the textarea. I don’t know why.
here is my code.
<?=htmlstripchars($row[grammar]);?>
hi guys.
I am trying to post a data in textarea.
The data is not showing in the textarea. I don’t know why.
here is my code.
<?=htmlstripchars($row[grammar]);?>
Try to change your code to this:
[php]<?php
// … connect to a database code …
$result = mysql_query(“SELECT * FROM get”);
if(mysql_num_rows($result)){
$row = mysql_fetch_array($result);
}
?>
<?php echo htmlstripchars($row['grammar']); ?>
[/php]
Also, is this function defined somewhere else in your code: htmlstripchars() ?
Maybe you mean to use php’s function htmlspecialchars()?
thank you for the help sir