hi
i am trying to, on a button click, display data retrieved from mysql database in a text area but having no success. Below is the code i used. All help given is appreciated
print "<center><TEXTAREA NAME=news ID=news COLS=70 ROWS=10>".$news."</TEXTAREA></center>";
if(isset($_POST['show2'])){
$cn = connect_db();
$cn_sql = "SELECT message from messageboard";
$con_res = mysql_query($cn_sql);
$news = $con_res;