|
10/11/08, 02:05
|
#1
|
Onbaşı
Üyelik tarihi: Jan 2008
Mesajlar: 21
|
Sayfalatma kodu
PHP- Kodu:
<?php require("config.php"); $baglan=mysql_connect($hostname,$username,$passwor d); mysql_select_db($db_name) or die ("Database ulaşılamadı"); $pass="asdasdasd"; $say=5;
$result = mysql_query( "SELECT * FROM admin " ); $num_rows = mysql_num_rows( $result ); $deger = $num_rows / 5 ; $deger_sonuc=(integer)$deger; if($num_rows!=$deger_sonuc*5){ $deger_sonuc=$deger_sonuc + 1; } $basla = $_GET["basla"] ? $_GET["basla"] : 1; // Kactan baslayacak? $ksayfa=($basla - 1) * 5; $result2 = mysql_query( "SELECT * FROM admin limit $ksayfa,5" );
echo "$deger_sonuc <p>"; print "<table border=1>\n"; while ( $a_row = mysql_fetch_row( $result2 ) ) { print "<tr>\n"; foreach ( $a_row as $haber ) print "\t<td>$haber</td>\n"; print "</tr>\n"; } print "</table>\n"; for ($sayac = 1; $sayac <= $deger_sonuc ; $sayac++ ) { if($sayac==$basla){
echo "$sayac "; }else{ echo "<a href=\"?basla=$sayac\" style=\"text-decoration: none\">[$sayac] </a>"; } } mysql_close( $baglan ); ?>
|
|
|
Konu Sayısı: 8
Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
|
|
Yetkileriniz
|
Yeni Mesaj yazma yetkiniz Aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz Aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz Aktif değildir dir.
HTML-KodlarıKapalı
|
|
|
Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 01:02 .
| |