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!


Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default Help with script!

    hey, does anybody know whats wrong with this script, for some reason it wont add the info to my database..

    i get no errors or nothing like that so i dunno whats wrong, + Rep for whoever helps!

    (for demo go to www.blazeradio.co.nr/blazeradio/staff/admin/addinfo.php )

    <?
    include("../include/dbconnect.php");
    ?>
    <body>

    <b>Here You Can Update The Radio Information</b><br>(Please Be Sure To Delete The Old Radio Information Before Adding The New Radio Information !)


    <?

    $Radio_IP = "$Radio_IP";

    $Radio_Port = "$Radio_Port";

    $Radio_Password = "$Radio_Password";

    if($action == "add") {

    $add = mysql_query("INSERT INTO `radioinfo` ( `Radio_IP`, `Radio_Port`, `Radio_Password`) VALUES ('$Radio_IP', '$Radio_Port', '$Radio_Password')");

    echo "<br><br>The Radio Information Has Been Updated !";

    } else {

    echo "<form method='post' action='$PHP_SELF?action=add'>

    <table border=\"0\" cellpadding=\"2\" cellspacing=\"5\">

    <tr><td><font face=\"Verdana\" size=\"1\">Radio IP:</td><td><input type='text' name='Radio_IP' class='button' size='25'></td></tr>

    <tr><td><font face=\"Verdana\" size=\"1\">Radio Port:</td><td><input type='text' name='Radio_Port' class='button' size='25'></td></tr>

    <tr><td><font face=\"Verdana\" size=\"1\">Radio Password:</td><td><input type='text' name='Radio_Password' class='button' size='25'></td></tr>

    <tr><td></td><td><input type='submit' name='submit' value='Update'></td></tr>

    </form>";



    ?>

    </font></P>

    </font></font></font></font></font>

    <? } ?>
    Last edited by :Lively; 03-08-2006 at 01:51 PM.
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  2. #2
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    44
    Tokens
    0

    Default

    your having probs with ur panel too. im stuck on how to make the request bit. i dont know what query to run. lol

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    yeh lol, if your aving trouble writing 1, just take 1 from a different panel lol

    anyways, anyone help???
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  4. #4
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default

    <tr><td></td><td><input type='submit' name='submit' value='Update'></td></tr>

    what about action="whatever" ?

  5. #5
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    right above it,

    $add = mysql_query("INSERT INTO `radioinfo` ( `Radio_IP`, `Radio_Port`, `Radio_Password`) VALUES ('$Radio_IP', '$Radio_Port', '$Radio_Password')");

    echo "<br><br>The Radio Information Has Been Updated !";

    } else {

    echo "<form method='post' action='$PHP_SELF?action=add'>

    <table border=\"0\" cellpadding=\"2\" cellspacing=\"5\">

    <tr><td><font face=\"Verdana\" size=\"1\">Radio IP:</td><td><input type='text' name='Radio_IP' class='button' size='25'></td></tr>

    <tr><td><font face=\"Verdana\" size=\"1\">Radio Port:</td><td><input type='text' name='Radio_Port' class='button' size='25'></td></tr>

    <tr><td><font face=\"Verdana\" size=\"1\">Radio Password:</td><td><input type='text' name='Radio_Password' class='button' size='25'></td></tr>

    <tr><td></td><td><input type='submit' name='submit' value='Update'></td></tr>

    </form>";
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  6. #6
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    44
    Tokens
    0

    Default

    i tried stealing one. it didnt work

  7. #7
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default

    Lol. Ok

  8. #8
    Join Date
    Dec 2005
    Posts
    724
    Tokens
    0

    Default

    include("../include/dbconnect.php"); <- Is that your directory starting with ../ also this has mySQL injection written all over it
    Starting webdesign again.

Posting Permissions

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