View Single Post
  #5 (permalink)  
Old April 23rd, 2004, 07:12 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

For those who didn't reply or didn't know here is some information for you:
This is how you do it
if (isset($_GET['Id']) && !is_null($_GET['Id']))
    $Id = $_GET['Id'];
else
    exit('fail');

$query1 = "SELECT Code FROM AddTable2 WHERE Id = '$Id'";
$result1 = @mysql_query ($query1) or die (mysql_error());
$data = mysql_fetch_assoc($result1);
if ($result1)

Message: <textarea name = "Code" rows = "20" cols = "80" wrap = "virtual"><?php echo str_replace("<", "&lt;", $data['Code']); ?></textarea><br>
Reply With Quote