Results 1 to 3 of 3
  1. #1
    ScottDiamond Guest

    Default Need DJ Panel Help.

    Yo. I've edited Housekeeping (FIXED) under dentafrice/belcame's permission. However, I always get an error saying unexpected $end in *ADDRESS* on line 157. Line 157 has nothing there and it's the very bottom of the code. Do I put in ?> or something? :S

    Thanks.

  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    If it ends with a html code, or even a ?> you will need a } above the ending, or if it ends with a html code put <? } ?> at the bottom.

  3. #3
    ScottDiamond Guest

    Default

    It's OK - trav fixed it over MSN. +Rep to you snail aswel for telling me the same thing trav said.

    Edit: Need to spread. "/

    I've got one more problem:

    http://consolefm.co.uk/staff/request.php

    When you send in the request, text fields come up which I don't want. This is the code:

    PHP Code:
    <? session_start();
    include 
    'dbConfig.php';
    $ip $_SERVER['REMOTE_ADDR']; //get the ip of the current user
    ?>
    <?
    if($_GET["action"] == "send") {
    if(
    $dj_name == "Select a DJ") { echo "<b><font face=Verdana color=darkred size=2>You Must Select a Dj!<br>"; exit; }
    $dj_name $_POST["dj_name"];
    $request stripslashes($_POST["request"]);
    $type $_POST["type"];
    $ip getenv("REMOTE_ADDR");
    $username $_POST['username'];
    $query mysql_query("INSERT INTO `requests` (`habboname`, `type`, `dj_name`, `message`, `ip`, `date`) VALUES('$username', '$type', '$dj_name', '$request', '$ip', NOW() )");
    echo 
    "<font face='Verdana' size='1'  color='#000000'>Thanks for your $type, <b>$username!</b> ConsoleFM's DJ $dj_name has received your $type. Your IP: <b>$ip</b> has been logged and sent to the DJ. Innapropriate messages will be dealt with.</font>";} else { 
    echo 
    "
    <form method='post' action='
    $PHP_SELF?action=send'>
     
    <table border='0'>
    <tr>
     
    <font face='Verdana' size='1'  color='#000000'><strong>Habbo Name:</strong></font><input name=\"username\" type=\"text\" id=\"username\">
     
    <td valign='top' align='left'><font face='Verdana' size='1'  color='#000000'><b>Type:</b><br>
    <font size='1' face='Verdana'><select name='type' size='1'>
    <option value='DJ Request'>Request</option>
    <option value='DJ Shoutout'>Shoutout</option>
    <option value='DJ Joke'>Joke</option>
    <option value='DJ Other'>Other</option>"
    ;}
    echo 
    "</select></font></td>
    </tr><tr>
    <td valign='top' align='left'><font face='Verdana' size='1'  color='#183139'><b>Dj Name:</b><br>
    <select size='1' name='dj_name'>
    <option selected>Select a DJ</option>
    "
    ;
    $result mysql_query("SELECT * FROM `staff`");
    while(
    $worked mysql_fetch_array($result)) {
    $rusername $worked["username"];
    echo 
    "<option value=$rusername>DJ $rusername</option>
    "
    ;
    mysql_close();
    }
    echo 
    "</select></td>
    </tr><tr>
    <td valign='top' align='left'><font face='Verdana' size='1'  color='#000000'><b>Message:</b><br>
    <textarea rows='5' cols='23' type='text' name='request' class='button'></textarea></font></td>
    </tr>
    <tr>
    <td valign='top' align='left'><font face='Verdana' size='1'  color='#000000'><input type='submit' name='submit' value='Send'></font></td>
    </tr>
    </table>
    </form>"
    ;
    ?>
    <br>
     
     
    <body text="#000000" bgcolor="#B22222" style="background-color: #FFFFFF">
    Anyone know what it should be? ;D
    Last edited by ScottDiamond; 27-01-2007 at 01:28 PM.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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