<?php
$object_id=$_REQUEST['object_id'];
if (is_numeric($object_id)) {
include "opendb.php";
$sql="select * from objects where id_object='$object_id'";
$query=mysql_query($sql,$mysql_conn);
if (mysql_num_rows($query)>0) {
$result=mysql_fetch_assoc($query);
echo $result['name'];
}
}
?>