Nieuw lid |
|
$sql2 = mysql_query("SELECT * FROM helpdesk WHERE id = '$id'");
$tick = mysql_fetch_array($sql2);
$messsage = "Beste ".$tick['username']."<br><br><b>Uw vraag was:</b> <br>".$tick['message']."<br><br><b>Iemand van de staff heeft het volgende antwoord gegeven:</b><br><br>".$_POST['messages']."<br><br>We hopen dat we u hebben geholpen met uw vraag.<br><b>De staff.";
$date = date("H:i:s d-m-Y");
$message = mysql_real_escape_string($message);
mysql_query("INSERT INTO `[messages]` (`time`, `IP`, `from`, `to`, `subject`, `message`) VALUES (NOW(),'{$_SERVER['REMOTE_ADDR']}','Helpdesk','$tick[username]','Helpdesk','$messsage')") or die(mysql_error());
mysql_query("UPDATE helpdesk SET closed = '$username' WHERE id = '$id'");
echo "<font color=#FFFFFF>Het bericht is verzonden.<meta http-equiv=Refresh content=0;url=hd.php?page=view>";
$sql2 = mysql_query("SELECT * FROM helpdesk WHERE id = '$id'"); $tick = mysql_fetch_array($sql2); $messsage = "Beste ".$tick['username']."<br><br><b>Uw vraag was:</b> <br>".$tick['message']."<br><br><b>Iemand van de staff heeft het volgende antwoord gegeven:</b><br><br>".$_POST['messages']."<br><br>We hopen dat we u hebben geholpen met uw vraag.<br><b>De staff."; $date = date("H:i:s d-m-Y"); $message = mysql_real_escape_string($message); mysql_query("INSERT INTO `[messages]` (`time`, `IP`, `from`, `to`, `subject`, `message`) VALUES (NOW(),'{$_SERVER['REMOTE_ADDR']}','Helpdesk','$tick[username]','Helpdesk','$messsage')") OR die(mysql_error()); mysql_query("UPDATE helpdesk SET closed = '$username' WHERE id = '$id'"); echo "<font color=#FFFFFF>Het bericht is verzonden.<meta http-equiv=Refresh content=0;url=hd.php?page=view>";
|