I'm trying to make this page that allows members of my site to post the following info(example) and then let the admins be able to view it on another page:
Ships (71306 units total)
Interceptor 8451 Torpedo 6453
Warfrigate 10586 Warcruiser 225
Battleship 1000 Spider 10046
Phantom 2141 Ghost 10000
Dagger 2880 Cargoship 8572
Astropod 10952
now this is what I have written so far, and please understand why I replace all paths to some non-existants, and yes I know they are way wrong :-) :
addfsize.php
<?
$include_path = "/home/blablabla/public_html/blabla";
include ("$include_path/header.inc.php");
?>
<table width="80%" cellspacing="0" cellpadding="0" border="0">
<tr>
<form method="post" action="fsize_added.php">
<h1>Add new Fleet Overview</h1>
<p>
(Paste your Fleet Overview, be sure to include the "Ships (235735 units in total)" part)
<p>
Fleet Overview:<br>
<textarea name="fleetsize" cols=40 rows=10 wrap="VIRTUAL"></textarea>
<p>
<input type="submit" value=" Add Fleet Overview >> ">
</td>
</tr>
</table>
</form>
<? include("$include_path/footer.inc.php");
?>
fsize_added.php
<?
$include_path = "/home/blablabla/public_html/blabla";
include("$include_path/header.inc.php");
mysql_query("INSERT INTO fsize (fleetsize,username)" .
" values('$fleetsize','$username')") ;
echo mysql_error();
?>
<h4>Your current Fleet Size has been added</h4>
<?
include("$include_path/footer.inc.php");
?>
view_fsize.php
<?
$include_path = "/home/blablabla/public_html/blabla";
include("$include_path/header.inc.php");
$result = mysql_query("SELECT fleetsize FROM fsize WHERE id='$fleetsize'");
if ($row = mysql_fetch_array($result)) {
print "Current Fleet Status for: $username";
print "$fleetsize";
}
?>
<p>
<a href="/blabla/blabla/memberlist.php">Go Back</a>
<p>
<?
include("$include_path/footer.inc.php");
?>
so..what is wrong here as I can't seem to get the info I saved in the DB