include_once "includes/dbConnNew.php"; include_once "includes/loggedOn.php"; $friends = $_REQUEST["friends"]; $messageTitle = $_REQUEST["messageTitle"]; $message = $_REQUEST["message"]; if($_POST["theAction"] == "msg"){ $dateSent=date("Y-m-d") ; $timeSent = date("H:i") ; $yada = trim(ereg_replace("'", "´",$_POST["yada"])); $friend_checked = $_POST['friend']; if($friend_checked > " "){ foreach($friend_checked as $friend_id) { $sqlInsert = "INSERT INTO yadayada (From_ID, To_ID, Date_Sent, Time_Sent, The_Text)" ; $sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','" . $friend_id . "','$dateSent','$timeSent','$yada')" ; $result2 = mysql_query($sqlInsert) or die(mysql_error()); } } $sent = "y" ; } ?>
| |
Post a Yada Yada Message |
|||||
|
||||||