我正在尝试使用 mysql 数据在 php 中制作字幕文本,但这是仅显示简单 mysql 数据的脚本。如何在我的 php 页面上显示选框?请帮我解决这个问题。谢谢
<?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);
?>