Computers |
|
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Newb Techie Join Date: Aug 2005
Posts: 2
| I know how to use php's mysql functions to retrive 1 row of coding, but how would I go about making an array with the array's variable names coming from one column, and the array's variable values coming from another, correspondingly? Thanks! |
| | |
| | #2 (permalink) |
| Newb Techie Join Date: Aug 2005
Posts: 2
| Well... I think I figured out the solution to my problem. while ($currentrow=mysql_fetch_array($result)) { $flags[$currentrow['country']] = $currentrow['flag']; } I think that will work... but i haven't been able to test it yet, because i'm having trouble logging into the database. Thanks |
| | |