Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2006
    Posts
    202
    Tokens
    0

    Default This is annoying >.<

    For some reason this isnt writing to the DB >.<

    PHP Code:
     <? 
    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>')");



    ?>
    Pssht

  2. #2
    Join Date
    Jul 2006
    Posts
    202
    Tokens
    0

    Default

    BTW I meant the alert is writing to the DB, The Log thingy is..
    Pssht

  3. #3
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <? 
    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

  4. #4
    Join Date
    Jul 2006
    Posts
    202
    Tokens
    0

    Default

    Nope, care to explain what you done because from what i can see you just renamed the message box...
    Pssht

  5. #5

    Default

    Ich denke, da&#223; er es herauf Gehilfen aber seins, das am php ziemlich gut ist muched

  6. #6
    Join Date
    Jul 2006
    Posts
    202
    Tokens
    0

    Default

    Nick shut it and stop spamming, you know nothing about PHP anyway so why post here you get all your scripts nulled from waushare ^_-
    Pssht

  7. #7
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    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
    Last edited by :Blob; 12-09-2006 at 04:39 PM.

  8. #8
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Oh. Yar ich bin geburtstag ?

    I cant help you on that mate,

    J1MI (Forum Moderator) - Please don't post pointlessly.
    Last edited by J1MI; 12-09-2006 at 05:03 PM.

  9. #9
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    574
    Tokens
    0

    Default

    Quote Originally Posted by speed-networks! View Post
    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!
    Cheesecake.

  10. #10

    Default

    Quote Originally Posted by Mess View Post
    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

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •