Php 连接成功,但未将数据导入网站mysql

Php 连接成功,但未将数据导入网站mysql,php,mysql,Php,Mysql,我们正在尝试连接php和mysql,我们连接成功,但我们没有收到任何想法请指导数据 我们也在使用mysql和php The Connection is Successful but nogetting the data into website enter code here`Please let me know who to correct it<html> <head> <title> Welcome to PDM</title> </

我们正在尝试连接php和mysql,我们连接成功,但我们没有收到任何想法请指导数据

我们也在使用mysql和php

The Connection is Successful but nogetting the data into website

enter code here`Please let me know who to correct it<html>
<head>
<title> Welcome to PDM</title>
</head>
<body>
<div>
<centre>
Good For Checking The Prices
</centre>
<?php>` 


    $db_host = "localhost";
    $db_username = "wikiacwj_price";
    $db_pass = "";
    $db_name = "wikiacwj_price";

    mysql_connect("$db_host","$db_username","$db_pass") or die ("Please Try Again");
    mysql_select_db("wikiacwj_price") or die ("no data");

    $sql = mysql_query("SELECT * FROM price_comparsion where product_name='ok'");

    //write the results

    while ($row = mysql_fetch_array($sql)); {
    echo $row['product_name'];}

    ?>
    </body>
    </html>
连接成功,但无法将数据导入网站
在此处输入代码`请告诉我要更正的人
欢迎来到PDM
很适合检查价格

while语句后面的分号指示while循环执行。。。没什么:)


应该这样做。

值得注意的是,要让您了解网站方言中显示的回显代码,请提供帮助:还有一个不使用标记的原因。
...
while ($row = mysql_fetch_array($sql)) {
  echo $row['product_name'];
}
...