View Single Post
  #2 (permalink)  
Old April 23rd, 2004, 06:45 PM
Snib Snib is offline
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

A few things are wrong with your code. One thing is that mysql_query() returns an identifier, not a readable value. Let me write a script for you as an example:
Code:
<?php

//standard connect to database

$query = "SELECT Code FROM AddTable2 WHERE Id='$Id'";
$result = mysql_query($query);
$data = mysql_fetch_assoc($result);
?>
<textarea><?php echo $data['Code']; ?></textarea>
HTH,

Snib

<><
Reply With Quote