John, et al --

...and then John Fishworld said...
% 
% can someone give me a bit of help / walthrough the following for me !

Let's see if I can help.


% this first bits is okay
% $mysql query1
% result
% array[cityid][cityname]
% 
% mysql query2
% result
% array[cityid][cityname]

Are CityIDs unique, like US-GA-ATL and CN-QC-MON or 214365 and 214387, or
is duplication possible?  If the IDs are unique then adding duplicates
won't cause duplicate entries.


% 
% now what i want to do is kick out any doubles in my array and resort them
% alphebetically by cityname ?!

Check out array_merge and array_multisort to put the two together and
sort on the second key, respectively.


% 
% 
% help !


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg91646/pgp00000.pgp
Description: PGP signature

Reply via email to