怎么显示?在php mysql数据中的字幕

时间:2013-04-03 08:03:47

标签: php mysql marquee

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

1 个答案:

答案 0 :(得分:0)

我希望你想在一个选框中打印列表

echo "<font><marquee>";

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

      }

echo "</font></marquee>";