Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Creating a Basic CMS with PHP - Part 3 [Super Improved]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,564
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 29, 2010

Adding logout functionality, listing posts and adding the delete function to the cms

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (pbj746)

  • A bit of a delay on Part 4, expect it up by friday

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • How Can I fixed ... !!!!!!!!! Can I ues Opstart():

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at \login.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at\login.php on line 10

  • I think there should be session_start(); (and maybe admin check) in delete, so noone can enter the code and delete the post if hes not admin.

  • Would you not just do (( title = $_POST["Title"]; ,, etc etc then use the var

  • cms/admin/posts.php =>

    Parse error: syntax error, unexpected '{' in C:\Webserver\root\CMS\admin\in­cludes\functions.php on line 6

  • These lessons would be just perfect, but I would so like to have working source-files. I made all these and worked fine but the last delete part doesnt work for me. Says: Undefined index: id plaplapla.. in deletePost.php on line 3. I checked the code and its all the same as in the video.

  • @nysc2007 He likely can get away with the other way since he's working locally, you seem to be working remotely. Once you set it up the way I directed yo, you can follow the rest of his tutorial keeping that structure in mind. It works.

    Also, remove the * echo "Login Successful" * from dologin.php, that will interfere with the header() under it and give you the same error you are already getting.

  • @nysc2007 You can likely solve problem 1 by putting * session_start(); * on the first line of the documents that use sessions.

    Problem 2 is because you have content written to the page at the time the header wants to change location. The only way it can take action is if nothing is printed in the document. You can fix this by putting all the HTML tags that aren't inside the IF structure, inside the IF structure. If you look at his 2nd video at 5:57, do the structure like that.

  • Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home4/pixelat6/public_html/CM­S/admin/includes/functions.php­:2) in /home4/pixelat6/public_html/CM­S/admin/dologin.php on line 4

    Login successful

    Warning: Cannot modify header information - headers already sent by (output started at /home4/pixelat6/public_html/CM­S/admin/includes/functions.php­:2) in /home4/pixelat6/public_html/CM­S/admin/dologin.php on line 15

  • Dont worry i've figured it out :P

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more