thanks for your help guys now its working but i have another problem..hope you can bear with me i just started learning php and there are some syntax and other stuff that i get confused about... heres my prob. in my mainBulletin.php they now display the title to the bulletins that were made and they were linked to the subBulletin.php where their news will be show through this code which you guys helped:
while($data = mysql_fetch_array($result))
{
echo(" <a href = \"subBulletin.php?id={$data['bulletID']}\"> {$data['bulletTitle']} </a> ");
}
as u can see the id tag is to be passed to the subBulletin and here's my subBulletin code:
$identifier = $_GET['id'];
if($_GET['id'] != NULL)
{
$query2 = "SELECT *
FROM bulletinBoard
WHERE bulletID = '$identifier'";
$result = mysql_query($query2);
$data = mysql_fetch_array($result);
}
and in the text area i placed this:
<textarea rows = "15" cols = "40" name = "newsbody" ><?php
if($identifier == NULL)
echo("Post your news ");
else
echo($data['bulletBody']);
?>
</textarea>
but it juz prints out the default "Post you news here" meaning it never got the id from main bulletin..whats wrong here? ? thanks in advance