Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php SQL从某些列导出特定数据_Php_Mysql_Sql_Export - Fatal编程技术网

Php SQL从某些列导出特定数据

Php SQL从某些列导出特定数据,php,mysql,sql,export,Php,Mysql,Sql,Export,我有一个ID抓取脚本,它使用proxys抓取ID,我在弄清楚如何编辑这张纸条时遇到了一点困难,我已经有了它,所以它只导出ID中的“稀有=1”,但我如何编辑它,使它不导出ID中的“售出=1”,这样它只导出未售出的ID $ids = $sql->select('*', '`ids` where rare = 1 (i dont want it to export values where sold = 1) ORDER BY `UserId` ASC', NULL, NULL, NULL, t

我有一个ID抓取脚本,它使用proxys抓取ID,我在弄清楚如何编辑这张纸条时遇到了一点困难,我已经有了它,所以它只导出ID中的“稀有=1”,但我如何编辑它,使它不导出ID中的“售出=1”,这样它只导出未售出的ID

$ids = $sql->select('*', '`ids` where rare = 1 (i dont want it to export values where sold = 1) ORDER BY `UserId` ASC', NULL, NULL, NULL, true, true);
只需为销售添加
(不等于)条款

$ids = $sql->select('*', '`ids` where rare = 1 AND sold <> 1 ) ORDER BY `UserId` ASC', NULL, NULL, NULL, true, true);
$ids=$sql->select('*',''ids',其中ravel=1,seld=1)ORDER BY`UserId`ASC',NULL,NULL,NULL,true,true);

ravel=1和sell=1
使用此简单