Hello
I didn't find any solution on my problem with inserting multiple chosen MySQL Table Columns to single PHP array.
$sql = "SELECT * FROM zaznam,client WHERE zaznam.id_client=client.id_client
AND zaznam.id_client=1";
$result = mysql_query($sql);
$data = array();
while ($row = mysql_fetch_assoc($result)) {
$data[] = $row;
}
echo json_encode($data);
-Edit: I need "zaznam.date", "zaznam.rozdil" and "client.limit", but not that id_client in WHERE parametr.
This code insert into Array all columns of my table. But I want to reach solution, where I can insert into this array only some of the columns.
I was trying around 3 hours to find any idea around this thing. Maybe I missed something, than if you link me the solution, it would be awesome too.
I hope I put every information you need to help me out :)
Chosse
*.*(which is all)?AND col2 = 'this' AND col3 = 'that'?