In Progress

PHP Function for Nested Menu Structure (from MySQL DB)

Write two functions in PHP using modern conventions optimized for php5 and with no external dependencies. The output must exactly match the format of the included code. Please carefully review attached files.

These functions are dealing with outputting menu structure based on a database. A sample of the database is included. The structure works by child categories nesting below parent categories.

For example:

Category “Animals” might be parent tab 0 (top level) and might have a record ID of 14. There could be a couple child records like “Dog” with parent tab 14, and “Cat” with parent tab 14. Parent Tab “0” is always a “top level.” Every element also has a “sort weight” which is the “order by” value to sort the display order by. These are sorted ascending…so if “cat” had a sort wither of 3 and “dog” a sort weight of 85…cat would obviously be displayed first, and dog later.

Function GenerateAdminMenu()

Accepts two parameters, the current user id number and the current active page. The function will query the list of all pages that are allowed for this user, and output them in a nested ul/li list. Example output is provided and must be matched EXACTLY. It is fine (perhaps even expected) to write an additional function to call as a sub-routine. If the “Allowed User Id” is “|ALL|” then it will always be displayed regardless of current user ID. If a sub-element is allowed, then the parent must also be displayed (even if permission is missing on the parent). Ignore any entry where `ParentTab` = “FUNCTION”.

Function GenerateAdminBreadcrumb()

Pretty self-explanatory, except there are not complete records in the database to demo this at multiple levels deep. Basically take the input URL, find it in the database table, and then recreate each level it took to get there in a ul/li list with links and titles. Example is provided.

Skills: MySQL, PHP

See more: nested php menu, php nested menu mysql, number function, function number, sort function, category php, wither, list every active url, entry level php , db query, tab display php, mysql sort, mysql pretty, php modern, list ascending, php mysql permission, call function, order number mysql, nested, php nested, php permission, php mysql query multiple, php using, function order, mysql output table

About the Employer:
( 41 reviews ) Houston, United States

Project ID: #4379146

Awarded to:


Hi, I checked your output format, the database and the sample function. I understand your requirement and can write the php function for you. Just select my bid and I will deliver the functions today.

$50 USD in 1 day
(80 Reviews)

17 freelancers are bidding on average $197 for this job


Can finish it for you on your server and show you the output of the completed script.

$200 USD in 1 day
(271 Reviews)

php expert here. ready to start.

$190 USD in 3 days
(102 Reviews)

Hi, Kindly visit my PM. I read your project description.

$226 USD in 4 days
(37 Reviews)

Hello Thanks for the sharing requirement. I went through your description and ready to work with you. I am myself doing programming so you will work directly with one person and that's me. No mediators. No manag More

$222 USD in 1 day
(46 Reviews)

Hi there, +10 years of php/mysql developer - looking forward to work at this project. Best regards

$199 USD in 3 days
(83 Reviews)

Hi there, We are experts in PHP Open Source (any kind of PHP/MySQL work),wordpress and Ajax/Web 2.0 technology. Some of the projects we completed for php are mentioned below More

$300 USD in 5 days
(68 Reviews)

I have read your requirements and I am interested in this job. I have more then 7 years experience in this field and I will do this job quick and professional.

$137 USD in 1 day
(54 Reviews)

I specialize in similar projects. Please check PM for more details.

$250 USD in 3 days
(18 Reviews)

Hello, sir. I'm interested with your project. I'll do it for you. Regards.

$515 USD in 5 days
(12 Reviews)

Hi, I am a ZCE having around 6 years of experience in PHP Technology with some frameworks/cms i.e. Symfony, Joomla, Wordpress, Jquery, Ajax & javascript. As I am a ZCE, My main focus is on quality delivery to More

$220 USD in 3 days
(16 Reviews)

Hi, I can make that function for you more details on pm box

$50 USD in 1 day
(16 Reviews)

Hi, I'm professional, innovative and positive approach Web Developer with good commend on PHP/MySQL, Ajax, Jquery, HTML, CSS, JavaScript, Drupal and Joomla, please check for more details.

$180 USD in 3 days
(4 Reviews)

We are PHP Experts and are in business since 2006 and have developed more then 300+ PHP Projects . Lets get this PHP project done and you will not be disappointed . Please check your PMB

$199 USD in 5 days
(4 Reviews)

IT Engineer with 13 years of experience (2000 - 2013), I have enough skills to complete this project. Please check inside my profile page - here at - what my former Employers have said about me. I a More

$240 USD in 3 days
(4 Reviews)

I am new to freelancer but having 7 years of experience in PHP and MYSQL.

$125 USD in 3 days
(0 Reviews)

OK Sire It's Available for you right now, please chek my pm.

$45 USD in 1 day
(0 Reviews)