right here is the new.php script
<?php
include "../conn.php";
session_start();
if(!isset($_SESSION['username']) && !isset($_SESSION['password'])){
header("Refresh: 5;url=index.php");
echo "You are not logon password is required to access this file...";
exit;
}
$sql = "select * from categories order by cName";
$rec=mysql_query($sql,$db) or die(mysql_error());
$datas = mysql_fetch_array($rec);
do{
$cats .= "<option value='$datas[cId]'>$datas[cName]</option>";
}while($datas = mysql_fetch_array($rec));
$displaytxt = "<form method ='post' action='savenewgame.php' enctype='multipart/form-data'>
Category List :
<select name='category'>$cats</select><br>
Game Title : <input type = 'text' name='gametitle' size='30'><br>
Game Description <br>
<textarea name='description' rows='12' cols='60'></textarea><br>
Thumbnail : <input type='file' name='gamepic' size='20'> <br>
Game :
<input type='file' name='gamefile' size='20'>
<p>
<input type='submit' value='Add this game' name ='submit'>
<br>
</p>
</form>";
include "template.php";
?>
hope this can help you help me.