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:

doluongsl

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)
6.3

17 freelancers are bidding on average $197 for this job

coolguyinus2004

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

$200 USD in 1 day
(271 Reviews)
7.4
neoconcepts

php expert here. ready to start.

$190 USD in 3 days
(102 Reviews)
7.2
templatesale

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

$226 USD in 4 days
(37 Reviews)
5.8
meet2amitvw

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)
5.8
satanek

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

$199 USD in 3 days
(83 Reviews)
5.8
linuxfreak1985

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 https://www.freelancer.com/projects/ More

$300 USD in 5 days
(68 Reviews)
5.8
wwwebbit

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)
5.6
phpXpertbd

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

$250 USD in 3 days
(18 Reviews)
5.4
kchg

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

$515 USD in 5 days
(12 Reviews)
4.4
phpopensource

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)
4.3
MinorityPath

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

$50 USD in 1 day
(16 Reviews)
4.2
zakir375

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 p.m.box for more details.

$180 USD in 3 days
(4 Reviews)
3.4
codehard

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)
3.2
Tulear

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 freelancer.com - what my former Employers have said about me. I a More

$240 USD in 3 days
(4 Reviews)
3.1
indiaarc12

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

$125 USD in 3 days
(0 Reviews)
0.0
AmmarAadam

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

$45 USD in 1 day
(0 Reviews)
0.0