Jump to content

chrisgunton

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chrisgunton's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm currently building a Content Management System for my university project, but im really very inexperienced with PHP (only started using PHP a couple of months back, and MySQL about a month ago), so i keep hitting stumbling blocks. The site its managing can be viewed here: [a href=\"http://digimed.chrisgunton.com/\" target=\"_blank\"]http://digimed.chrisgunton.com/[/a] I have a very nice page creation/editing system that works great, and from these pages it creates a menu on the main site. Problem is i have no way of putting the buttons in a particular order. I'm using this to edit the order of the menu items [a href=\"http://www.gregphoto.net/sortable/advanced/\" target=\"_blank\"]http://www.gregphoto.net/sortable/advanced/[/a] Or rather i will be! Ive got it listing my pages, and you can drag them and show the debug information. But how do i save this into my db to order the menu?
  2. [!--quoteo(post=363753:date=Apr 11 2006, 07:41 PM:name=craygo)--][div class=\'quotetop\']QUOTE(craygo @ Apr 11 2006, 07:41 PM) [snapback]363753[/snapback][/div][div class=\'quotemain\'][!--quotec--] I looked at the page and it seems fine. The problem looks like the caching of the page. When I go back and forth and keep checking published and unchecking it. When I return to the page, i get it as it was the first time i went to it. If i just click refresh it shows me the changes. So it looks like it is a caching problem and not a script problem. Ray [/quote] go to the admin page i linked to, choose a Published page, dont make any changes, just click Save. go back to the CMS main screen and look at the status again.
  3. Hi, Ive only been working with PHP since the weekend, and so far im pretty happy with myself. Ive built a rough CMS using PHP and MySQL for a University project. It can add, edit and delete pages, as well as set "Published" or "Draft" status for each page. This is where the problem lies. Im using a checkbox to set the Published status, which sets the value to 1 or 0 in the DB. The following code gets the current status of the page and displays the checkbox, ticked or not depending on the status. [code] <? if ($islive) {     echo "<input type='checkbox' name='ud_islive' value='0' checked />"; } else {     echo "<input type='checkbox' name='ud_islive' value='1' />"; } ?> [/code] Problem here is that if the page is Published, when being edited, no matter what you do its set to Draft when saved. I can be set to Published again but it sure is anoying. You can try it out here. But PLEASE dont go nuts with the editing. (also note, this is 2 days work from someone who hasnt even attempted PHP before so be kind!) [a href=\"http://digimed.chrisgunton.com/admin/\" target=\"_blank\"]http://digimed.chrisgunton.com/admin/[/a] Any help with this would be greatly appreciated, as my brain is starting to ache!
×
×
  • 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.