If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > How to randomly add elments to array which is assigned to a key in associative array

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-03, 23:13
itsvasu itsvasu is offline
Registered User
 
Join Date: Mar 2003
Posts: 16
How to randomly add elments to array which is assigned to a key in associative array

i have a result set from query execution that first field is the main menu and second field is the submenu and third column field is the description. these are ordered with display priority.
How can i get the main menu as associative array key and remaining two is an elment added to the array and assigned to the key.
ex:
$res[Emp]=array([create]=>toCreateEmployee,[delete]=>toDeleteEmployee,[update]....)
$res[user]=array([create].....)

problem is that all the emp records arent come in sequence because of order by displaypriority.
plz give me the sugge. that how to write in php
thank u
:-)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On