Any code for news ticker ?
Can anyone help me how to use javascript and php.
here is my inews.php code which works fine.
<?php
require_once("mainfile.php");
global $dbi;
$perpage=10;
echo" <b>Top News</b><br>";
$result=mysql_query("Select newsid,headline from inews ORDER BY newsid DESC limit $perpage",$dbi);
while(list($newsid,$headline)=mysql_fetch_row($result)) {
echo"<strong><big>.</big></strong> <a href=\"http://www.[url]www.com/modules.php?name=inews&file=index&action=click&newsid=[/url]$newsid\">$headline</a> <br>";
}
?>
When i call this script from a html file using java script code it does not show anything
<SCRIPT LANGUAGE="Javascript" src="http://localhost/inews.php"></script>
Any help ?