solved with a little bit of help from BPAT this is the code i used and it worked:
<?php
include "config.php3";
include "dbconnect.php3";
$id = $_REQUEST['pageid'];
if( isset($id) )
{
$a = "SELECT * FROM $table1 WHERE id = $id";
$rows = mysql_query($a);
while ($b = mysql_fetch_array($rows)){
$cont = $b['content'];
}
$test = mysql_num_rows($rows);
if($test == 1)
{
echo $cont;
}
else
{
echo "Sorry but it appears this content no longer exists Sorry,<br>
Please content admin at homer09001@gmail.com stating which link you clicked on
<br>
thank you :D";
}
}
else
{
echo "wlecome content here";
}
?>
$GET and $POST didnt work so i tried $REQUEST and that didnt work so i simply tried $id which is the results of teh $REQUEST
thanks for your help guys 😃