Show sourcecode
The following files exists in this folder. Click to view.
names.php
17 lines ASCII Windows (CRLF)
<?php
include ('../dbconnection.php');
$del = $_GET['name'];
$query = "SELECT * FROM AJAX WHERE namn LIKE '$del%' ORDER by namn";
$stmt = $dbconn->prepare($query);
$data = array();
$stmt->execute($data);
$text = "";
while ($res = $stmt->fetch(PDO::FETCH_ASSOC)) {
$hel = $res["namn"];
if ($text=="") $text=$hel;
else $text.=", ".$hel;
}
echo "$text";
?>