-3

我正在尝试使用 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);
    ?>
4

1 回答 1

0

我希望你想在选框里打印列表

echo "<font><marquee>";

 while($row = mysqli_fetch_array($result))
      {
    echo "{$row['ntitle']}: {$row['ndetails']} <br>";

      }

echo "</font></marquee>";
于 2013-04-03T08:08:19.283 回答