Hey list,

suppose I have several dates in a database-table, where these dates are
marked as 'set' or 'not set'.

If I do something like :
SELECT ID FROM my_table WHERE client=clientID AND set=yes

and this query results in several rows and thus several ID's like "2 5 7
11 13 14 17"...

How can I iterate over these values ??

Something like :

for each item in ARRAY {
SELECT asterisk_syntax FROM other_table WHERE dateID=$item
}

This query would result in something like *|*|7|may.

How to iterate over an array of results ???

Jonas.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to