JamesCliff
Programmer
Hi all,
Right ok, got big ideas but unforntunatly i lack in knowledge in order for me to carry some of them out
So im calling on your help. This could be a long thread but will be very helpful to others.
Basiclly.... Im creating a new site for myself ( and i want it to be competely managable through an admin who logs in and controls the site. Below is my idea.....
I have an index php which calls other pages into it that are in the navigation menu. For example home.php in the same dir as my index.php could be called using the following in the address bar:
index.php?page=home
However although each page (home.php and others) could be driven from a mysql database they would need to be created first and coded before been uploaded to the servers root directory and the index.php or other index include which houses the site menu links changing. I want to get rid of this. Basiclly im thinking if i could set up one page eg. content.php and a mysql table i could add new sections to the table. For example, i could log into my site as an admin and add a new section called Jokes. I would specify a name for the section (Jokes) and then click an add button. This would create a section called Jokes for my site. It would automaticlly add a link to the database table which would show up in my index site menu. When the link shows up in the index site menu it would be a link that when clicked, a specific section would be called from the mysql table or database through content.php. I could add or edit content in each section created by logging in as admin and then clicking the edit page and selecting an already created section from a combo box (drop down menu)and then clicking the edit button. This would show up a empty text box that i could add content to. Then i would save it. A section could be deleted in a simular way using a combo box.
By doing this method above everything could be done easily by the admin without having to create a new page. When a section is created by the admin a link is automaticlly added to the site navigation menu on the index.php. When the link is clicked the specific content would be displayed. Editing and deleting sections would be done through the use of combo boxes.
As far as i can see this method would work very well. Full, effective and efficient sections could be created with images, hyperlinks and text content. The user wouldnt be able to tell the difference whether they were reading a seperate php page for each section of just one page calling a mysql table unless they looked at the address bar. One problem would be creating sub sections from main sections that have been made. However i would cross this problem when we came to it.
Can anyone help me with this idea, it would be a great help and very apprriciated, even if i was given enough info to get started with eg. mysql table structures and page calling table help along with displaying a specific link in the site navigation menu along with other already created section links.
Or if anyone knows a better way to pull something like this off. Im open to all angles. Personally this is the only way i can see something like this been pulled off.
Thanks alot
Jim
Right ok, got big ideas but unforntunatly i lack in knowledge in order for me to carry some of them out
So im calling on your help. This could be a long thread but will be very helpful to others.
Basiclly.... Im creating a new site for myself ( and i want it to be competely managable through an admin who logs in and controls the site. Below is my idea.....
I have an index php which calls other pages into it that are in the navigation menu. For example home.php in the same dir as my index.php could be called using the following in the address bar:
index.php?page=home
However although each page (home.php and others) could be driven from a mysql database they would need to be created first and coded before been uploaded to the servers root directory and the index.php or other index include which houses the site menu links changing. I want to get rid of this. Basiclly im thinking if i could set up one page eg. content.php and a mysql table i could add new sections to the table. For example, i could log into my site as an admin and add a new section called Jokes. I would specify a name for the section (Jokes) and then click an add button. This would create a section called Jokes for my site. It would automaticlly add a link to the database table which would show up in my index site menu. When the link shows up in the index site menu it would be a link that when clicked, a specific section would be called from the mysql table or database through content.php. I could add or edit content in each section created by logging in as admin and then clicking the edit page and selecting an already created section from a combo box (drop down menu)and then clicking the edit button. This would show up a empty text box that i could add content to. Then i would save it. A section could be deleted in a simular way using a combo box.
By doing this method above everything could be done easily by the admin without having to create a new page. When a section is created by the admin a link is automaticlly added to the site navigation menu on the index.php. When the link is clicked the specific content would be displayed. Editing and deleting sections would be done through the use of combo boxes.
As far as i can see this method would work very well. Full, effective and efficient sections could be created with images, hyperlinks and text content. The user wouldnt be able to tell the difference whether they were reading a seperate php page for each section of just one page calling a mysql table unless they looked at the address bar. One problem would be creating sub sections from main sections that have been made. However i would cross this problem when we came to it.
Can anyone help me with this idea, it would be a great help and very apprriciated, even if i was given enough info to get started with eg. mysql table structures and page calling table help along with displaying a specific link in the site navigation menu along with other already created section links.
Or if anyone knows a better way to pull something like this off. Im open to all angles. Personally this is the only way i can see something like this been pulled off.
Thanks alot
Jim