Results 1 to 4 of 4

Thread: HSP Help

  1. #1
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default HSP Help

    Hey im using HSP I want to change the Dj says to

    Verdana size 1 and #FFFFFF +Marquee

    This is the code i tryed

    PHP Code:
    <marquee><?php
    include("../config.php");
    $djsays MYSQL_QUERY("SELECT * from djsays WHERE id='1'");
    $djsays mysql_fetch_array($djsays);
    <
    b><font face="Verdana" size="1" color="#FFFFFF">$djsays[name]</b>: $djsays[says].");
    ?></font></marquee>
    i get this

    Code:
     Parse error:  syntax error, unexpected '<' in /home/habbovoi/public_html/panel/frontend/djsays.php on line 5
    this is the original

    PHP Code:
    <?php
    include("../config.php");
    $djsays MYSQL_QUERY("SELECT * from djsays WHERE id='1'");
    $djsays mysql_fetch_array($djsays);
    echo(
    "
    DJ <b>
    $djsays[name]</b>: $djsays[says].");
    ?>

    Thanks +rep

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    you kinda forgot your in the php tags by the looks of it

    PHP Code:
    <?php
    include("../config.php");
    $djsays MYSQL_QUERY("SELECT * from djsays WHERE id='1'");
    $djsays mysql_fetch_array($djsays);
    echo 
    '<marquee><font face="Verdana" size="1" color="#FFFFFF">'// put font around the edge
    echo("DJ <b>$djsays[name]</b>: $djsays[says].");
    echo 
    '</font></marquee>'// close it
    ?>
    That should do it, though your htmls pretty invalid, maybe concider a css alternative? as the font tags kinda prehistoric. And marquee's are just ugly "/
    Last edited by Mentor; 03-02-2008 at 05:55 PM.

  3. #3
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Thanks it works bbut why dont this

    PHP Code:
    <body topmargin="0" leftmargin="0">
    <style type="text/css">
    Body { Background: transparent; }
    </style>

    <marquee><?php
    include("../config.php");
    $djsays MYSQL_QUERY("SELECT * from djsays WHERE id='1'");
    $djsays mysql_fetch_array($djsays);
    <
    b> <font face="Verdana" size="1" color="#FFFFFF">$djsays[name]</b>: $djsays[says].");
    ?></font></marquee>

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    becuse you just took your already none working code and just shoved:

    <body topmargin="0" leftmargin="0">
    <style type="text/css">
    Body { Background: transparent; }
    </style>

    above it ?

Posting Permissions

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