jbingman Posted November 30, 2007 Share Posted November 30, 2007 Hi I am trying to retrieve a text block from a Mysql database and display it inside of a <textarea> how do i do this? Link to comment https://forums.phpfreaks.com/topic/79501-mysql-data-to-a-text-box/ Share on other sites More sharing options...
marcus Posted November 30, 2007 Share Posted November 30, 2007 $sql = "SELECT textbox FROM `table` WHERE `this`='that'"; $res = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_assoc($res); echo "<textarea cols=\"30\" rows=\"14\" style=\"border:1px solid #000000; padding:3px;\"> ". stripslashes($row['textbox']) ."</textarea>\n"; eh? Link to comment https://forums.phpfreaks.com/topic/79501-mysql-data-to-a-text-box/#findComment-402585 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.