Eóin Martin

Don't question authority, it doesn't know either.

No Rating

Simple News System Part II by Slashman X

Back to tutorials

Simple News System Part II
By emcfc/Slashman X


Please Note: In all instances of *textarea remove the * and all cases of smilies should be replaced by their conterpart.

Lets get straight to it eh?

This is going to be almost the same as the comment management tut so if you have read that you should understand this.

Lets start off manage.php with a switch statement.

PHP Code


<?php
require_once('config.php');
switch (@
$_GET['do']){

    case 
'delete'//manage.php?do=delete
    
delete(); //Use the delete function
    
break;

    case 
'edit':
    
edit();
    break;
    

    default:
    
home();
    break;
}


That is just the basis for the manage.php?do=whatever links, we are going to start off with the "default" home function that you will first see when you go to manage.php.


1 Comments

  1. Ali

    18:31, April 25, 2008
    1

    Well written mate (Y)


Post A Comment Or Rating





  

  

captcha