Jump to content

Mysql data to a text box


jbingman

Recommended Posts

$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?

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.