Posts: 427
Name: Stuart
Location: Glasgow, Scotland
|
The output of that should be an array of 'siteaddress'=>'sitename' key/value pairs of however many rows teh query returns.
That should work however. If you populate the variables to put in the array something like...
PHP Code:
$siteAddress = $qry['siteaddress']; $siteName = $qry['siteName'];
Oh wait, you are created a 2 dimenional array when you only want a key/value paired array.
try...
PHP Code:
$linkString[$siteAddress] = $siteName;
Incidentally, are you sure you dont want the keys/values the other way around so you can access the address from the site name?
Hope this helps.... 
|