[insert_php]
$key0 = $_POST[‚key0‘] ;
$key1 = $_POST[‚key1‘] ;
$sear00 = „ID IN (SELECT distinct object_id FROM wp_term_relationships WHERE term_taxonomy_id IN (SELECT term_taxonomy_id FROM wp_term_taxonomy WHERE taxonomy rlike \“firmeninfo\“)) “ ;
if ($key0) {
$sear0=“post_content rlike binary \“$key0\“ and “ ;
$search=$sear0 .$sear00;
}
if ($key1) {
$sear1=“post_content rlike \“$key1\“ and “ ;
$search=$sear1 .$sear00;
}
if ($key0 and $key1) {
$sear1=“post_content rlike \“$key1\“ and “ ;
$search=$sear0 .$sear1 .$sear00;
}
if (!$search){
exit;
}
$query = „SELECT ‚ID‘, ‚post_title‘, ‚post_content‘ FROM wp_posts where $search“ ;
/* echo $query ;
*/
if($search) {
$result = mysqli_query($database,“SELECT ID, post_title, post_content FROM wp_posts where $search“);
$num = mysqli_num_rows($result);
while ($row = mysqli_fetch_assoc($result)) {
echo “
„;
echo „“ .utf8_encode ($row[„post_title“]) .“ — „;
echo „zurück„;
}
}
[/insert_php]

