点击(此处)折叠或打开
- <?php
$conn = mysql_connect(“127.0.0.1:1234″,”username”,”password”) or die (“wrong!”);
$sel=mysql_select_db(“dbname”,$conn);
$sql=”select * from atltab”;for($i = 0;$i<100;$i++)
{
$que=mysql_query($sql,$conn);
while ($row = mysql_fetch_assoc($que)) {
var_dump($row);
}}
mysql_close($conn);
?>