📜  php echo sql 结果 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:43.556000             🧑  作者: Mango

代码示例2
$sql="SELECT * my_table"

$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
    echo $row['fieldname']; 
}