Am i taking crazy pills? I'm doing a simple echo from the database to a textarea. For some reason, it's not showing, but all my other db info echoes fine!
Here's my echo request...
Description<br/>
<textarea name = "description" cols=40 rows=6 value="<? echo $description;?>" onblur = "makeRequest('cms.php','description','<? echo $id; ?>')"; /></textarea><br/>
here's the "cms.php" code...
<?
include 'connect.php';
$id = $_GET['id'];
foreach ($_GET as $key => $value)
{
if ($key == 'name')
{
$name = $_GET['name'];
$sql = mysql_query("update properties set name = '$name' where id = '$id'");
}
if ($key == 'description')
{
$description = $_GET['description'];
$sql = mysql_query("update properties set description = '$description' where id = '$id'");
}
if ($key == 'contact')
{
$contact = $_GET['contact'];
$sql = mysql_query("update properties set contact = '$contact' where id = '$id'");
}
if ($key == 'price')
{
$price = $_GET['price'];
$sql = mysql_query("update properties set price = '$price' where id = '$id'");
}
}
if ($sql) echo "Record Updated";
?>
Thanks for the extra eye balls!