我正试着用PHP在Excel中生成一份报告。下面是我的代码,它工作正常,但我没有得到我想要在Excel电子表格中显示的正确输出。似乎我的表单中的所有数据都包含在内了。我只想打印数据库中的数据。你能帮我解决我的问题吗?
<?php
//this is my code for downloading my files into excel..
if (isset($_POST['download']))
include("db.php");
{
//$file="document_name
<?
include('config.php');
$z=$_GET['qnum'];
$j=$_GET['num'];
$n=$_GET['num'];
$sql=mysql_query("SELECT * FROM qustion where qnum='$z'");
while($l=mysql_fetch_array($sql))
{
$m++;
}
$sql=mysql_query("DELETE FROM qustion WHERE qnum='$z
我在MySQL 5.6.38上运行MAMP4,我的一个队友在MySQL 5.7.21上运行MAMP5。 他已经导出了一个数据库供我使用,但当我使用Sequel Pro导入他们的数据库时,我得到了以下错误: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json NOT NULL,
`dateCreated` datetime NOT NULL,
`date
我试图使用命令导入641 MB的MySQL数据库:
mysql -u root -p ddamiane_fakty < domenyin_damian_fakty.sql
但我有个错误:
ERROR 1064 (42000) at line 2351406: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<br />
<b>Fatal