I am trying to make marquee text in php using mysql data but this is script showing only simple mysql data. How can i showing marquee on my php page? Please help me to fix this issue. Thanks
<?php
$con=mysqli_connect("something.com","someusername","somepassword.","somedatabase");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM itomi");
while($row = mysqli_fetch_array($result))
{
echo "{$row['ntitle']}: {$row['ndetails']} ";
echo "</font></marquee>";
}
mysqli_close($con);
?>
i hope u want to print list in a marquee
echo "<font><marquee>";
while($row = mysqli_fetch_array($result))
{
echo "{$row['ntitle']}: {$row['ndetails']} <br>";
}
echo "</font></marquee>";