Search the web
Sign In
New User? Sign Up
metabase-dev · Metabase Development discussions list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
in place of mysql_fetch_row   Message List  
Reply | Forward Message #1116 of 1151 |



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










Thu Feb 17, 2005 5:42 am

idiroddi
Offline Offline
Send Email Send Email

Forward
Message #1116 of 1151 |
Expand Messages Author Sort by Date

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"); ...
idiroddi
Offline Send Email
Feb 17, 2005
5:57 am

Hello, ... for($line=0; !MetabaseEndOfResult($database, $result) && MetabaseFetchResultArray($database, $result, $row, $line); $line++) ...
Manuel Lemos
mallemos
Offline Send Email
Feb 17, 2005
6:09 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help