$result1 = mysql_query("SELECT place FROM TotalTickets WHERE timeBegin = '".$bs."'");
while ($values = mysql_fetch_assoc($result1)) {
echo json_encode($values);
}
$.ajax({
url:"test1.php",
data: { "bs": bs },
dataType: "json",
async: true,
success:function(result1){
$sit=result1.place;
if ($sit='А'){
console.log('yes');
$(this).css('background', '#c9c9c9');
}
},
error: function (request, status, error) {
console.log(request.responseText+ '|\n' + status + '|\n' +error);
}
});