con- query SELECT FROM zada WHERE id id fetch_assoc duos_id con- query

1
2
3
4
5
<?
$b = $con->query("SELECT * FROM `zada` WHERE `id` = '".$id."'")->fetch_assoc();
$duos_id = $con->query("SELECT * FROM `zada_ok` WHERE `id_zada` = '".$id."' AND `id_user` = '".$user['id']."'")->fetch_assoc();
if($duos_id==true){echo'ok';}else{echo'no';}
?>