我想在输出显示在屏幕上时将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);