You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
455 B
PHP
22 lines
455 B
PHP
<?php
|
|
|
|
require_once 'db_login.inc.php';
|
|
mysql_connect(HOST,USER,PASSWORD);
|
|
mysql_select_db(DATABASE);
|
|
|
|
$q = strtolower($_GET["q"]);
|
|
if (!$q) return;
|
|
|
|
$sql = mysql_query("select kd_supplier,nama_supplier from supplier where nama_supplier LIKE '%$q%'");
|
|
while($r = mysql_fetch_array($sql)) {
|
|
$kdsupp = $r['kd_supplier'];
|
|
$namasupp = $r['nama_supplier'];
|
|
$tmp = $kdsupp.".".$namasupp;
|
|
//$kodesupplier = explode('.',trim($tmp));
|
|
|
|
echo "$tmp \n";
|
|
|
|
}
|
|
|
|
?>
|