Hrvoje Posted July 7, 2011 Share Posted July 7, 2011 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 More sharing options...
Adam Posted July 7, 2011 Share Posted July 7, 2011 In what way is it not working? Link to comment https://forums.phpfreaks.com/topic/241340-php-echo-in-textarea/#findComment-1239678 Share on other sites More sharing options...
Hrvoje Posted July 7, 2011 Author Share Posted July 7, 2011 My mistake sorry Now its working Link to comment https://forums.phpfreaks.com/topic/241340-php-echo-in-textarea/#findComment-1239680 Share on other sites More sharing options...
antonyfal Posted July 7, 2011 Share Posted July 7, 2011 thats was funny to read Link to comment https://forums.phpfreaks.com/topic/241340-php-echo-in-textarea/#findComment-1239843 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.