wm_xfreex adlı üyeden alıntı: mesajı görüntüle
include("a.php");
echo "document.write('<marquee direction=\"left\" width=\"785\" height=\"25\" behavior=\"scroll\" scrollamount=\"3\" scrolldelay=\"0\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\">".deneme()."</marquee>');";
şeklinde dener misin

ayrıca deneme() fonksiyonu içinde echo mu veriyorsun yoksa return mu yaptırıyorsun
Buda olmadı
deneme fonksiyonu
function deneme(){
	$sql="SELECT * From tablo";
	$sorgu=mysql_query("$sql");
	while ($sonuc=mysql_fetch_array($sorgu))
	              {?>
<? echo"$sonuc[2]";?>
<?       }}