PHP 如何显示 mysql select 查询到 table
PHP How to display mysql select query to table
如何向 table 显示 select 查询?我用的是Dreamweaver.
查询如下:
SELECT date(Date) as Monthly, sum(qtyBlackWhite) as TotalBW, sum(qtyChocnut) as TotalChocnut,
sum(qtyHotMama) as TotalHotMama,sum(qtyMocha) as TotalMocha,
sum(qtyUbeKeso) as TotalUbeKeso
FROM admin.order_queue
GROUP BY month(Date);
table中的列应该是
|Monthly|TotalBW|TotalChocnut|TotalHotMama|TotalMocha|TotalUbeKeso|
$查询="SELECT * FROM admin.order_queue";
if($display = mysql_query($query2) or die("Error in Selecting : ".mysql_error()))
echo("Success in Selecting <br/>"); //executing SELECT query
while($row = mysql_fetch_array($display))
{
print($row['Monthly']);
print(" | ");
print($row['TotalBW']);
print(" | ");
...
} // Displaying the SELECT query
尝试这样的事情
如何向 table 显示 select 查询?我用的是Dreamweaver.
查询如下:
SELECT date(Date) as Monthly, sum(qtyBlackWhite) as TotalBW, sum(qtyChocnut) as TotalChocnut,
sum(qtyHotMama) as TotalHotMama,sum(qtyMocha) as TotalMocha,
sum(qtyUbeKeso) as TotalUbeKeso
FROM admin.order_queue
GROUP BY month(Date);
table中的列应该是
|Monthly|TotalBW|TotalChocnut|TotalHotMama|TotalMocha|TotalUbeKeso|
$查询="SELECT * FROM admin.order_queue";
if($display = mysql_query($query2) or die("Error in Selecting : ".mysql_error()))
echo("Success in Selecting <br/>"); //executing SELECT query
while($row = mysql_fetch_array($display))
{
print($row['Monthly']);
print(" | ");
print($row['TotalBW']);
print(" | ");
...
} // Displaying the SELECT query
尝试这样的事情