Jump to content

PHP Ticker Tape


greens85

Recommended Posts

Hi all,

 

Does anybody know how I can create a ticker tape effect for my website?

 

There is lots of source code for this on the net but none seems to allow for PHP intergration. I would like the content of the ticker tape to be populated from the following code already in place:

 

<?
$a = mysql_query("SELECT * FROM jobs where status = '0' order by jobid desc limit 10");
while($b = mysql_fetch_array($a))
{
?>
<tr>
<td align="left" colspan="2"><b><a href=<?=$fullurl?>/info_jobid_<?=$b[jobid]?>.html><?=$b[position]?></a></b>
<small>
<br><b>Hours:</b> <?=$b[hour]?>
<br><b>Job Location:</b>
<?
if(!empty($b[subcity]))
{
echo "$b[subcity], $b[subcounty], $b[country]";
}
elseif(!empty($b[subcounty]))
{
echo "$b[subcounty], $b[country]";
}
else
{
echo "$b[country]";
}
?>
<br>
<b>Salary:</b> <?=$b[salary]?></small> 
<hr style="background-color: rgb(204, 204, 204);" width="100%" size="1" noshade="noshade" color="#cccccc">
</td>
</tr>
<?
}
?>

 

Can anybody help?  ???

Link to comment
https://forums.phpfreaks.com/topic/159248-php-ticker-tape/
Share on other sites

php is server sided, I don't think it has a way to do that

you want to show you stuff client sided, html has some function like that though

 

you can however implement your php variables in the html code

or implement the hmtl code in your php code :x

 

can't really help you any further on this sorry

Link to comment
https://forums.phpfreaks.com/topic/159248-php-ticker-tape/#findComment-839908
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.