Save all the records with a value in an array

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

Save all the records with a value in an array

Post by tuxor » 2016-03-14 23:33

Hi guys, here is my problem:

I have a table1: id, name, color, size;
And I need to save all the id's with size=3 in an array: $ids=array(list of all the id of register with size=3);

Then Use the array to make a query, for all the items of the array, example: $registro = sql("select * from `table1` where `id`='$ids[]' limit 1", $eo);

How can do that?

Thanks.

Post Reply