View Full Version : This is annoying >.<
Motion
12-09-2006, 03:12 PM
For some reason this isnt writing to the DB >.<
<?
ob_start();
include('config.php');
if(!$logged[username] && $logged[level] == 5) {
echo("You are not logged in or admin");
}else{
if(!$_POST[alert]) {
echo("
<form method=\"POST\">
<type=\"hidden\" size=\"25\" name=\"from\" value=\"$logged[username]\">
Send an alert to:<br><input type=\"text\" size=\"25\" name=\"to\">
<br><br>
Message:<br><textarea name=\"message\"></textarea><br><br>
<input type=\"submit\" value=\"Send Alert\" name=\"alert\"></form>");
}else{
$message = $_POST[message];
if($message == NULL) {
echo("No message was entered!");
}else{
$to = $_POST[to];
$message = $_POST[message];
$from = $_POST[from];
$update = mysql_query("INSERT INTO alert (username, alert, from) VALUES('$to','$message','$from')");
echo ("Your alert has been sent.");
mysql_query("insert into `logs` (description) values('<font face=\"Verdana\" size=\"1\">$logged[username] sent an alert to '<b>$to</b>' with the message <b>$message</b>.</font>')");
}
}
}
?>
Motion
12-09-2006, 03:14 PM
BTW I meant the alert is writing to the DB, The Log thingy is..
:Blob
12-09-2006, 03:37 PM
<?
ob_start();
include('config.php');
if(!$logged[username] && $logged[level] == 5) {
echo("You are not logged in or admin");
}else{
if(!$_POST[alert]) {
echo("
<form method=\"POST\">
<type=\"hidden\" size=\"25\" name=\"from\" value=\"$logged[username]\">
Send an alert to:<br><input type=\"text\" size=\"25\" name=\"to\">
<br><br>
Message:<br><textarea name=\"alert\"></textarea><br><br>
<input type=\"submit\" value=\"Send Alert\" name=\"submit\"></form>");
}else{
$message = $_POST[message];
if($message == NULL) {
echo("No message was entered!");
}else{
$to = $_POST[to];
$message = $_POST[message];
$from = $_POST[from];
$update = mysql_query("INSERT INTO alert (username, alert, from) VALUES('$to','$alert','$from')");
echo ("Your alert has been sent.");
mysql_query("insert into `logs` (description) values('<font face=\"Verdana\" size=\"1\">$logged[username] sent an alert to '<b>$to</b>' with the message <b>$message</b>.</font>')");
}
}
}
?>
If its that, otherwise i dunno :S
Motion
12-09-2006, 04:35 PM
Nope, care to explain what you done because from what i can see you just renamed the message box...
speed-networks!
12-09-2006, 04:37 PM
Ich denke, daß er es herauf Gehilfen aber seins, das am php ziemlich gut ist muched
Motion
12-09-2006, 04:38 PM
Nick shut it and stop spamming, you know nothing about PHP anyway so why post here you get all your scripts nulled from waushare ^_-
:Blob
12-09-2006, 04:38 PM
Normally my mysql only lets me insert the $string into the thing called string..
And nick said:
I think that it up is rather good it assistants however seins, to php muched
Kymux
12-09-2006, 04:38 PM
Oh. Yar ich bin geburtstag ?
I cant help you on that mate,
J1MI (Forum Moderator) - Please don't post pointlessly.
Ich denke, daß er es herauf Gehilfen aber seins, das am php ziemlich gut ist muched
Ja, das ist es.
Obwohl, ich leibe mein mutter.
Mein Deutsche ist nicht so gut so...
English please!
speed-networks!
12-09-2006, 04:39 PM
Ja, das ist es.
Obwohl, ich leibe mein mutter.
Mein Deutsche ist nicht so gut so...
English please!
lol,means Ryan is great at PHP
:Blob
12-09-2006, 04:40 PM
lol,means Ryan is great at PHP
If you can translate, its this:
Yes, that is it. Although, I body my nut/mother. My German is not so good like that…
speed-networks!
12-09-2006, 04:45 PM
http://www.****************/uploads/589b7b0538.png
http://www.****************/uploads/4c57f1f0ca.png
I don't think there nulled ?
Sygon.
12-09-2006, 05:25 PM
ich habe dik *****, Ich spiele mit Muschi, ryan Was die Materie mit Ihrem Code genau ist
Sygon
speed-networks!
12-09-2006, 05:27 PM
pritty good with your german lol,
J1MI (Forum Moderator) - Please don't post pointlessly.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.