Hi all:
I'm trying to pull from a table all values of a specific row (accountids) and would like to iterate through each query result while perform a specified task with each value.
Example: The following q--
$get_acctids="select accountid from company_info";
$result = mysql_query($get_acctids) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$id_num= $row['accountid'];
}
Outputs the following ids:
425786
663890
319721
818284
121897
703272
Now, I would like to iterate through each id while executing another script (at a different location) with each id as a variable being passed to that script.
I would appreciate some thoughts on this!
Best,