greens85 Posted May 22, 2009 Share Posted May 22, 2009 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 More sharing options...
Yeodan Posted May 22, 2009 Share Posted May 22, 2009 I think I speak for everyone here: What's a ticker tape? Link to comment https://forums.phpfreaks.com/topic/159248-php-ticker-tape/#findComment-839901 Share on other sites More sharing options...
greens85 Posted May 22, 2009 Author Share Posted May 22, 2009 lol! You know on like news channels where news stories scroll across the bottom of the screen? Thats what ticker tape is. Link to comment https://forums.phpfreaks.com/topic/159248-php-ticker-tape/#findComment-839905 Share on other sites More sharing options...
Yeodan Posted May 22, 2009 Share Posted May 22, 2009 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 More sharing options...
jsschmitt Posted May 22, 2009 Share Posted May 22, 2009 place all the code in the following tags: <marquee> </marquee> Link to comment https://forums.phpfreaks.com/topic/159248-php-ticker-tape/#findComment-839909 Share on other sites More sharing options...
MasterACE14 Posted May 22, 2009 Share Posted May 22, 2009 place all the code in the following tags: <marquee> </marquee> pretty sure that's outdated and no longer used and/or recommended. Google a Javascript one instead. Link to comment https://forums.phpfreaks.com/topic/159248-php-ticker-tape/#findComment-839953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.