PDA

View Full Version : HSP Help



Jamieb
03-02-2008, 05:30 PM
Hey im using HSP I want to change the Dj says to

Verdana size 1 and #FFFFFF +Marquee

This is the code i tryed


<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


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

this is the original


<?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

Mentor
03-02-2008, 05:54 PM
you kinda forgot your in the php tags by the looks of it


<?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 "/

Jamieb
03-02-2008, 06:10 PM
Thanks it works bbut why dont this


<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>

Mentor
03-02-2008, 06:21 PM
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 ?

Want to hide these adverts? Register an account for free!