webtuto Posted January 19, 2008 Share Posted January 19, 2008 <?php include("config.php"); $sql="select * from slayer.marquee order by id desc LIMIT 0,10"; $res=mysql_query($sql); while($row=mysql_fetch_array($res)){ echo "<marquee><table><tr><td>".$row['name']." "; echo "<td>".$row['msg']."</tr></table></marquee>"; } ?> i want the results to be in 1 ligne and one after the other ,thanks ;D Link to comment https://forums.phpfreaks.com/topic/86830-solved-including-marquee-tag-on-a-database-output/ Share on other sites More sharing options...
pocobueno1388 Posted January 19, 2008 Share Posted January 19, 2008 Try <?php include("config.php"); $sql="select * from slayer.marquee order by id desc LIMIT 0,10"; $res=mysql_query($sql); echo "<marquee><table><tr>"; while($row=mysql_fetch_array($res)){ echo '<td>'.$row['name'].' </td>'; echo '<td>'.$row['msg'].'</td>'; } echo "</tr></table></marquee>"; ?> Link to comment https://forums.phpfreaks.com/topic/86830-solved-including-marquee-tag-on-a-database-output/#findComment-443767 Share on other sites More sharing options...
pclp19 Posted July 3, 2014 Share Posted July 3, 2014 help me please, my code is : $table = tov;$hal = $_GET[hal];if(!isset($_GET['hal'])){$page = 1;} else {$page = $_GET['hal'];}$max_results = 2;$from = (($page * $max_results) - $max_results);$sql = mysql_query("SELECT * FROM $table ORDER BY id_berita DESC LIMIT $from, $max_results");while($hs_show = mysql_fetch_array($sql)){$urut++;?><marquee scrollamount="4" align="left" behavior="scroll" direction="left" class="text" onmouseover="this.stop()" onmouseout="this.start()"><?php echo "$hs_show[judul]"; ?></marquee><?php}$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM $table"),0);$total_pages = ceil($total_results / $max_results); i want the results to be in 1 line and one after the other ,thanks Link to comment https://forums.phpfreaks.com/topic/86830-solved-including-marquee-tag-on-a-database-output/#findComment-1483648 Share on other sites More sharing options...
mac_gyver Posted July 3, 2014 Share Posted July 3, 2014 take the time to start your own thread for your problem. topic locked... Link to comment https://forums.phpfreaks.com/topic/86830-solved-including-marquee-tag-on-a-database-output/#findComment-1483681 Share on other sites More sharing options...
Recommended Posts