| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
$displaytext="";
if(isset($_POST['inp'])){
$_SESSION['inp'] = $_POST['inp'];
}
if(isset($_SESSION['inp'])){
$inputText = $_SESSION['inp'];
$stmt = $conn->query("SELECT * FROM offices WHERE city LIKE '$inputText%'"); // SQL Query ausführen
$displaytext = $inputText;
}
elseif(isset($_GET['inp'])){
$_SESSION['inp'] = $_GET['inp'];
$inp = $_SESSION['inp'];
$stmt = $conn->query("SELECT * FROM offices WHERE officeCode LIKE '$inp%'")
}
else if(isset($_GET['letter'])){
$letter = $_GET['letter'];
$_SESSION['letter'] = $letter;
$let = $_SESSION['letter'];
$stmt = $conn->query("SELECT * FROM offices WHERE city LIKE '$let%'");
}
else{
$stmt = $conn->query("SELECT * FROM offices"); // SQL Query ausführen
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 193.170.70.27)
----
Manual Page -- https://php.net/manual/en/install.general.php
Edit -- https://main.php.net/note/edit/130264
Del: integrated -- https://main.php.net/note/delete/130264/integrated
Del: useless -- https://main.php.net/note/delete/130264/useless
Del: bad code -- https://main.php.net/note/delete/130264/bad+code
Del: spam -- https://main.php.net/note/delete/130264/spam
Del: non-english -- https://main.php.net/note/delete/130264/non-english
Del: in docs -- https://main.php.net/note/delete/130264/in+docs
Del: other reasons-- https://main.php.net/note/delete/130264
Reject -- https://main.php.net/note/reject/130264
Search -- https://main.php.net/manage/user-notes.php