Jump to content

Recommended Posts

Hi,

I am currently coding a rather large project which includes an admin panel. Im not a bad php coder but when it comes to larger projects i often have problems. This one includes a producers table, customers, products, users, etc. I made a user system for logging in, editing, etc. The admin panel is a problem. I will need to make a part where the admin can edit producers, edit the customers that are associated with the producer, etc. I could make it but my code wopuld be very messy, etc. Any idea of how to handle/organize large projects like this?
Link to comment
https://forums.phpfreaks.com/topic/12473-problem-coding-large-project/
Share on other sites

In the past I have always seperated admin pages and regular pages by putting pages in an admin folder and functions in an admin.inc page or any other page you may so name it. This will help seperate the pages and the code. You could also hide the location of such files by using includes and html variables to call the pages rather then going to them directly, for security purposes.

Ray
Thanks for the reply. Yeh I have an admin folder and include files, but it still gets messy, for example i will need to add, edit, delete, etc., etc. and i will have a huge amount of if's, etc.

Also, a question regarding the customers and producers. I have seen websites with 2 boxes, and if you select and element and click a button it moves it to the other one. I think i could use this to add and remove customers from producers. How would i do this?
[!--quoteo(post=386097:date=Jun 20 2006, 01:36 PM:name=nickk)--][div class=\'quotetop\']QUOTE(nickk @ Jun 20 2006, 01:36 PM) [snapback]386097[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thanks for the reply. Yeh I have an admin folder and include files, but it still gets messy, for example i will need to add, edit, delete, etc., etc. and i will have a huge amount of if's, etc.

Also, a question regarding the customers and producers. I have seen websites with 2 boxes, and if you select and element and click a button it moves it to the other one. I think i could use this to add and remove customers from producers. How would i do this?
[/quote]

That sounds like Javascript.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.