JavaScript
- 7 ответов
- 0 вопросов
8
Вклад в тег
<?
include 'connect.php';
mysql_select_db("bd",$dbconnect) or die (mysql_error());
$query = mysql_query("SELECT * FROM `table`");
$res['Name'] = mysql_result($query,3,3);
echo json_encode($res);
$.ajax({
url: ...,
data: ...,
dataType: 'json',
success: function(response) {
alert(response.Name);
}
});