自己做了个html页需要做个生成二维码的功能,需要给二维码加上一个跳转,达到扫码可以跳转到别的网站。
代码如下:
<div class="table-responsive">
<table class="table table-bordered table-striped">
<tr>
<th>巡逻点</th>
<th>坐标</th>
<th>二维码</th>
</tr>
<?php while($dwxx = $dsql->GetArray()){?>
<tr>
<td><?php echo $dwxx['xld'];?></td>
<td><?php echo $dwxx['zb'];?></td>
<td><img src="useryx.png"></td>
</tr>
<?php }?>
</table>
</div>
如果是自己用php写,那么可以看看PHP QR Code