Teknoloji Haberleri
DH
forum
mini
Uygulama ile
aç
Uygulama ile Aç
Giriş
Kayıt
DH Anasayfa
İndirim Kodu
Ara
Popüler
Foruma Git
Hakkımızda
Destek
Mobil Sürüm
Standart Site Görünümü
Bu Konuda
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
PHP / CGI
Bu Konuda
Bağlan:
Facebook
Google+
Twitter
Aşağı Git
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
PHP / CGI
PHP autocomplete
Bu konudaki kullanıcılar: 1 misafir
0
Cevap
150
Tıklama
0
Öne Çıkarma
1. sayfa
PHP autocomplete
Cevap Yaz
Konuya Özel
Linkli Mesajlar
Seçkin Yorumlar
P
popohitan
Cevapla
Özel Mesaj
Şikayet
Mesaja Link
Takip Et
10 yıl
(5 mesaj)
Er
Konu Sahibi
arkadaşlar php ve jquery kullanarak autocomplete yapmaya çalıştım bu konuda daha acemiyim hatam nerede yardımcı olursanız sevinirim, şimdiden teşekkürler.
ekranda gözüken kısım burası
test1.php
<!doctype html>
<html lang="us">
<head>
<meta charset="utf-8">
<title>Başlıksız Belge</title>
<link href="css/base/jquery-ui-1.9.2.custom.css" rel="stylesheet nofollow">
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.js"></script>
</head>
<script>
$(function() {
$("#autocomplete").autocomplete({
source: "test2.php",
minLength: 2
});
});
</script>
<form>
<input type="text" id="autocomplete" name="autocomplete"/>
</form>
<body>
veri tabanından veri çektiğim kısımda burası
test2.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Başlıksız Belge</title>
</head>
<body>
<?php
include("baglanti.php");
$arama = $_REQUEST['autocomplete'];
$sorgu= mysql_query("SELECT * FROM kullanicilar WHERE kullaniciadi LIKE '%{$arama}%'");
$UyeListesi = array();
while($sonuc=mysql_fetch_array($sorgu))
{
$UyeListesi[] = $sonuc['kullaniciadi'];
}
echo json_encode($UyeListesi);
?>
</body>
</html>
Cevap Yaz
1. sayfa
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
PHP / CGI
PHP autocomplete
DH Mobil uygulaması ile devam edin.
Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin.
App Store'dan
İndirin
Google Play'den
İndirin
Gizle ve güncelleme çıkana kadar tekrar gösterme.
Hizmet kalitesi için çerezleri kullanabiliriz, DH'yi kullanırken depoladığımız çerezlerle ilgili
veri politikamıza
gözatın.
ekranda gözüken kısım burası
test1.php
<!doctype html>
<html lang="us">
<head>
<meta charset="utf-8">
<title>Başlıksız Belge</title>
<link href="css/base/jquery-ui-1.9.2.custom.css" rel="stylesheet nofollow">
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.js"></script>
</head>
<script>
$(function() {
$("#autocomplete").autocomplete({
source: "test2.php",
minLength: 2
});
});
</script>
<form>
<input type="text" id="autocomplete" name="autocomplete"/>
</form>
<body>
veri tabanından veri çektiğim kısımda burası
test2.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Başlıksız Belge</title>
</head>
<body>
<?php
include("baglanti.php");
$arama = $_REQUEST['autocomplete'];
$sorgu= mysql_query("SELECT * FROM kullanicilar WHERE kullaniciadi LIKE '%{$arama}%'");
$UyeListesi = array();
while($sonuc=mysql_fetch_array($sorgu))
{
$UyeListesi[] = $sonuc['kullaniciadi'];
}
echo json_encode($UyeListesi);
?>
</body>
</html>