*****message.php
This is the coding for the message center for the stores. It lets the store
view the messages that only pertain to them and also lets the delete the
messages to them. (the deleting is done by connection to page messageErase.php
//
Message Center
//
//
$link=mysql_connect("mysql.tjhsst.edu", "syousuf", "xxxxxx");
mysql_select_db("syousuf", $link);
$query= "select * from messages order by Date";
$result = mysql_query($query, $link);
$num_rows = mysql_num_rows($result);
//?>
****messageErase.php
This is the page that erase the message sent from the store message center
//
$link=mysql_connect("mysql.tjhsst.edu", "syousuf", "xxxxxx");
mysql_select_db("syousuf", $link);
$query= "select * from messages";
$result = mysql_query($query, $link);
mysql_query("delete from messages where Too='$a' and Fromm='$b' and
Subject='$c'");
Header("Location: message.php?ViewMethod=$ViewMethod&pass=$pass");
//?>
***message2.php
This page is identical to message.php except it is for the DC so it shows all
messages. It also gives the DC the option to delete messages sent to them.
(messageErase2.php)
//
Message Center
//
///
$link=mysql_connect("mysql.tjhsst.edu", "syousuf", "xxxxxx");
mysql_select_db("syousuf", $link);
$query= "select * from messages order by Date";
$result = mysql_query($query, $link);
$num_rows = mysql_num_rows($result);
//?>
******messageErase2.php
This is the delete page for the DC message center
//
$link=mysql_connect("mysql.tjhsst.edu", "syousuf", "xxxxxx");
mysql_select_db("syousuf", $link);
$query= "select * from messages";
$result = mysql_query($query, $link);
mysql_query("delete from messages where Too='$a' and Fromm='$b' and
Subject='$c'");
Header("Location: message2.php?ViewMethod=$ViewMethod&pass=$pass");
//?>