我有这个查询
$DB->query("SELECT id FROM tfilter WHERE '". $Properties['Title'] ."' LIKE CONCAT('%', filter, '%')");
我需要这样做,以便脚本在得到结果时死亡,现在我有这个:
if($DB->record_count() != 0) {
$Err = '<b>This cant be uploaded</b>';
include(SERVER_ROOT . '/sections/upload/upload.php');
die();
if($DB->record_count() != 0) {
这应该是别的吗?因为它不会死,即使我知道它有结果
这个查询在 phpscript 中看起来像这样。它是更大网站的一部分
$DB->query("SELECT id FROM tfilter WHERE '". $Properties['Title'] ."' LIKE CONCAT('%', filter, '%')");
if($DB->record_count() != 0) {
$Err = '<b>This cant be uploaded</b>';
include(SERVER_ROOT . '/sections/upload/upload.php');
die();
$Properties['Title'] = String from the upload script that contains the titel.
$DB is the call til mysql
filter = the row in mysql
tfilter = the database name
我需要什么:
我需要 php 在 FILTER 行中的表格 TFILTER 中搜索与 $Properties['Title'] 的匹配项,如果找到任何匹配项则 DIE。如果字符串:The.White.Tiger。存在于 FILTER 行中,og $Properties['Title'] 包含 The.White.Tiger.In.The.Yard,php 应该死掉。