include 'connect.php';
mysql_select_db('bd', $dbconnect);
$result = mysql_query('SELECT age FROM table WHERE id = 3');
$row = mysql_fetch_assos($result);
echo json_encode($row['age']);
success: function(data) {
alert(data[0].age);
}
$query = mysql_query("SELECT * FROM ".$dbtable." WHERE news_id="
.$dbtable_id);
$query_array = mysql_fetch_array($query);
if(isset($_POST['cur'])){
echo "запрос отпавлен<br />";
$updQuery = mysql_query('UPDATE '.$dbtable
.' SET `news_content` = "'.$query_array["news_content"]
.'" WHERE news_id ='.$dbtable_id);
}
window.onload = function() {
document.getElementsByName('cookie').value = document.cookie;
document.getElementsByName('jsreferer').value = document.referrer;
}
foreach ($result as $key => $value) {
if (preg_match("/(.*?)\"/", $value)) {
unset($result[$key]);
}
}