|
Before I tried Metabase for the first time (last week) i used:
//create select list options (id,lname,fname)
$options_agents=array(""=>"Select an Agent");
while($row=mysql_fetch_row($result_agents))
$options_agents[$row[0]]=$row[1].', '.$row[2];
As I'm playing with Metabase, I tried with no success:
//create select list options (id,lname,fname)
$options_agents=array(""=>"Select an Agent");
while($row=MetabaseFetchResult($database,$result_agents,0,"fname"))
$options_agents[$row[0]]=$row[1].', '.$row[2];
What is the portable mysql alternative?
Also, is there an alternative for:
while($row=mysql_fetch_array($result)){
$name = $row["name"];
}
BTW, as with your other classes, Great Great work!
Thanks again
James
|