将查询结果发送到打印机

时间:2018-05-05 07:44:56

标签: php mysql

我想在输出显示在屏幕上时将MYSQL查询的输出发送到打印机。我的查询代码如下。

<?php    
$cxn = mysqli_connect($host,$user,$password,$database) or die ("Could not connect to database");
$today = date("Y/m/d + 1");

$sql = "SELECT * FROM `lafont` WHERE  weekending> '$newdate' and weekending < '$newdate1'  order by weekending";
$result = mysqli_query($cxn,$sql) or die ( "error1" );

$num = mysqli_num_rows($result);

0 个答案:

没有答案