Jump to content

PHP echo in textarea


Hrvoje

Recommended Posts

Hello,

 

I have this code:

<?PHP 
include "connect.php";

$sql="SELECT * FROM news;
if (!$q=mysql_query($sql))
{
echo "error" . mysql_query();
$err=true;
} elseif (mysql_num_rows($q)==0) {
echo "error";
$err=true;
} else {

$row=mysql_fetch_array($q);
}

?>

 

<textarea name="title" cols="20"><?PHP echo $row["title"];?></textarea>

 

This is not working

How it Works?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/241340-php-echo-in-textarea/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.