Ok as you might have read in a earlyer thread, that i have produced an admin page for my website, i hvae resolved all the error. but it now doesn't do what i want it to do, and i've got no idea way because it just a modifed verson of my older script im used for another website. what it should do is farlly expanitory. so i won't go into that. what is not working is that the input form is for some reason out of the table, and non of my links work. to see the current resolt of my code go to http://www.harveysnetworkunit.com/admin.php my code is shown below
<?php
/*********** Include Files *********************/
session_start();
include("sub/subDatabase.php");
include("sub/subContent.php");
include("sub/subAddnews.php");
include("sub/subDelete.php");
include("sub/subDeleteall.php");
/*************************************/
?>
<html>
<body>
<?php
/****************** menu *********************************/
?>
<table border="1" align="center">
<tr>
<td>
<?php print "<a href=\"admin.php?$action=list\">List News</a> "; ?>
</td>
<td>
<?php print "<a href=\"admin.php?$action=add\">Add News</a> "; ?>
</td>
<td>
<?php print "<a href=\"admin.php?$action=del\">Delete News</a> "; ?>
</td>
<td>
<?php print "<a href=\"admin.php?$action=delall\">Delete all News</a> "; ?>
</td>
<td>
<?php print "<a href=\"admin.php?action=edit\">Edit News</a><br>"; ?>
</td>
</tr>
</table>
<table width="70%" height="90%" border="1" align="center">
<tr>
<td><h1>
<?php
/************************** List News **********************************/
if (isset($action) && $action == 'delall'){ content(); }
/*********************** End of List News ******************************/
/************************** Add News ***********************************/
if (isset($action) && $action == 'add') {
?>
<form action="insert.php" method="post">
<p>Title
<input type="text" name="title" />
</p>
<p>Content
<textarea name="news" cols="100" rows="10"></textarea>
<input type="submit" />
</p>
</form>
<?php
}
/************************ End Add News *******************************/
/********************** Delete all record **********************/
if (isset($action) && $action == 'delall') { deleteall(); }
/******************** end of delete all ****************/
/********************* delete a record *****************/
if (isset($action) && $action == 'del') { delete(); }
/********************** end of delete a record ***************/
?>
</h1> </td>
</tr>
</table>
also can peoiple give me advice on this page about what the admin page should do?