if ($_GET["add"] || $_GET["update"]) {
extract($_POST); // get the variables from the post array
if ($_GET["add"]) {
// add the bulletin info to the table
$addBullet = "insert into wd_bulletin ( b_user,b_msg) values ('$user','$msg')";
$addResult = mysql_query($addBullet) or die ("Error in adding bulletin: ". mysql_error());
$act = "ADDED";
}
if ($_GET["update"]) {
// update the bulletin info in the table
$up_id = $_GET["update"];
$upBullet = "update wd_bulletin set b_msg = '$msg' where b_id = $up_id";
$upResult = mysql_query($upBullet) or die ("Error in updating bulletin: ". mysql_error());
$act = "UPDATED";
}
?>
BULLETIN FOR MEMBER
} else {
$postString = "addbulletin.php?add=1";
$buttonText = "Enter Posting";
if ($_GET["query"]) {
// add the bulletin info to the table
$get_id = $_GET["query"];
$getBullet = "select b_msg from wd_bulletin where b_id = $get_id";
$getResult = mysql_query($getBullet) or die ("Error in retrieving bulletin: ". mysql_error());
$getRow = mysql_fetch_array($getResult);
$b_msg = $getRow["b_msg"];
$postString = "addbulletin.php?update=$get_id";
$buttonText = "Update Posting";
}
// give the page so they can enter a bulletin
?>
FORMAT KEY
LINE BREAK: Type <br> where you want the line break to appear.
Ex. Typing: "Line1<br>Line2" would look like: Line1 Line2
BOLD: Type <b> before and </b> after the word(s) you want to be bold.