PHP
- 2 ответа
- 0 вопросов
2
Вклад в тег
<?php
if (isset($_POST['phone'])){
$zapros1 = " and 'phone' IN ('".$_POST['phone']."')";
} else {$zapros1="";}
if (isset($_POST['dateadd'])){
$zapros1 = " and 'dateadd' IN ('".$_POST['dateadd']."')";
} else {$zapros2="";}
if (isset($_POST['name'])){
$zapros1 = " and 'name' IN ('".$_POST['name']."')";
} else {$zapros3="";}
if (isset($_POST['place'])){
$zapros1 = " and 'place' IN ('".$_POST['place']."')";
} else {$zapros4="";}
$foolzapros="WHERE ".$zapros1.$zapros2.$zapros3;