<?php include('config.php'); $sql = "SELECT * FROM all_sprzedaze WHERE e_id = '$_POST[e_id]'"; $res = mysql_query($sql); $row = mysql_fetch_array($res); echo json_encode($row); ?>