View Single Post
  #1 (permalink)  
Old April 23rd, 2004, 06:08 PM
Alex_forever Alex_forever is offline
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display data in textarea with select statement

Here is basically what I have. I'm trying to query the database to display in a textarea so that I can update the information while looking at it could someone please help me with this topic
$Id = $_GET['Id'];

$query = "SELECT Code FROM AddTable2 WHERE Id = '$Id'";
$result = @mysql_query ($query) or die;
if ($result)

Message: <textarea name = "message" rows = "20" cols = "80" wrap = "virtual" value = "<?php echo "$result"; ?>" /></textarea><br>

P.S I am only a beginner so please excuse the messy code writing