query("SELECT * FROM {$tablepre}threads WHERE subject= '{$keyword}' ".$srchstring." LIMIT 1"); if ($db->num_rows($query)>0){ echo('1'); } else { echo('0'); } } else { echo('[err]invalid vercode[/err]'); } $db->close; exit(); ?>