• 07-07-2014, 21:01:05
    #1
    Merhabalar.

    Ücretli veya ücretsiz yardım edicek arkadaşları arıyorum.

    Ben Kodu yazdım ama
    mysql_fetch_array() expects parameter 1 to be resource, boolean given in
    hatası aldım ve beynim şişti uğraşmak istemedim açıkcası pekte.

    Admin panelinde üyelerin bulundugu bölümde üyeler için arama yapabilmek için buton oluşturulcak. Yapılan arama aynı sayfa üzerine yazılcak yani bulunan üye üzerinde yine düzenleme vs. işlemler yapılabiliyor olucak.

    Bir diğer istegim ise ;

    Sitede 2 tür üye var.

    Normal üye ve Gold Üye

    Admin panelinde üyeler bölümünde bunları istedigimiz zaman ayrı ayrı kategorilendirmesini yapmak istiyoruz. Goldların hepsini bir sayfada diğerini bir sayfada görmek istiyoruz.

    El atıcak arkadaş varsa çekinmesin

    uyeler.php

    <?php
    /**********************************************************************************/
    /*							     Muhammed Benzer Tahmin v1.0     				      */
    /*================================================================================*/
    /*                                                                                */
    /*		                                */
    /*     Sistem Yazılım : Muhammed Benzer Sistem Yazılım Tarihi : 02.06.2014 Cuma     */
    /* 					                                    */
    /*================================================================================*/
    /*                             mhmmdbnzr@gmail.com                             */
    /**********************************************************************************/
    function anasayfa(){
    	global $baglanti;
    sayfaac("YÖNETİM PANELİ - ÜYELER");
    $toplam_sayfa=@mysql_num_rows(@mysql_query("SELECT id FROM "._mami."uyeler"));
    	if($toplam_sayfa=="0"){
    		?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%" id="AutoNumber1">
      <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="35%" height="30" align="center" bgcolor="#E5E5E5"><b>E-POSTA</b></td>
        <td width="35%" height="30" align="center" bgcolor="#E5E5E5"><b>ADI SOYADI</b></td>
        <td width="14%" height="30" align="center" bgcolor="#E5E5E5"><b>SEVİYE</b></td>
    	<td width="16%" height="30" align="center" bgcolor="#E5E5E5"><b>İŞLEM</b></td>
      </tr>
      <tr>
        <td width="100%" height="100" colspan="6">
        <p align="center">
        <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
        <p align="center">ÜZGÜNÜM, SİSTEMDE ÜYE BULUNMAMAKTADIR.</td>
      </tr>
    </table>
    		<?
    	}else{
    ?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%" id="AutoNumber1">
      <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="35%" height="30" align="center" bgcolor="#E5E5E5"><b>E-POSTA</b></td>
        <td width="35%" height="30" align="center" bgcolor="#E5E5E5"><b>ADI SOYADI</b></td>
        <td width="16%" height="30" align="center" bgcolor="#E5E5E5"><b>SEVİYE</b></td>
    	<td width="14%" height="30" align="center" bgcolor="#E5E5E5" colspan="2"><b>İŞLEM</b></td>
      </tr>
    <?php
    $limit=15;
    $sayfa_sayisi=ceil($toplam_sayfa/$limit);
    $sayfa = intval($_GET['sayfa']);
    if(!$sayfa) $sayfa=1;
    $goster=$sayfa*$limit-$limit;
    $tahminlericek=@mysql_query("select id, eposta, adsoyad, seviye from "._mami."uyeler order by id desc limit ".$goster.",".$limit."");
    while($yazdir=@mysql_fetch_array($tahminlericek)){
    	$uye_id=$yazdir["id"];
    	$eposta=$yazdir["eposta"];
    	$adsoyad=$yazdir["adsoyad"];
    	$seviye=$yazdir["seviye"];
    	if($seviye=="normal") $seviye="NORMAL ÜYE";
    	if($seviye=="gold") $seviye="<font color=\"#F20000\" />GOLD ÜYE</font>";
    ?>
    <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="35%" height="30">&nbsp; <?=$eposta?></td>
        <td width="35%" height="30">&nbsp; <?=$adsoyad?></td>
        <td width="16%" height="30" align="center"><?=$seviye?></td>
    	<td width="7%" height="30" align="center"><a href="index.php?p=uyeler&lider=duzenle&uye_id=<?=$uye_id?>" /><img border="0" src="resimler/duzenle.png" /></a></td>
    	<td width="7%" height="30" align="center"><a href="index.php?p=uyeler&lider=sil&uye_id=<?=$uye_id?>" /><img border="0" src="resimler/sil.png" /></a></td>
      </tr>
    <?php
    }
    	?>
    </table>
    <?
    echo "<div align=\"center\"><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E5E5E5\" width=\"100%\" id=\"AutoNumber1\">
    <tr>";
    $sayfa = intval($_GET['sayfa']);
    $sayfa_sayisi=ceil($toplam_sayfa/$limit);
    $forlimit=5;
    if($sayfa > 1){
    	$onceki_sayfa=$sayfa-1;
    	$sonraki_sayfa=$sayfa+1;
    	?>
    	<td width="75" height="24">
        <p align="center"><span><a href="index.php?p=uyeler&sayfa=1">İlk Sayfa</a></span></td>
    	<td width="100" height="24">
        <p align="center"><span><a href="index.php?p=uyeler&sayfa=<?=$onceki_sayfa?>">Önceki Sayfa</a></span></td>
    	<?
    }
    for($i=$sayfa-$forlimit+1; $i <= $sayfa+$forlimit; $i++){
    	if($i > 0 && $i <= $sayfa_sayisi){
    		
    		if($i==$sayfa){
    		?><td width="5%" height="24">
        <p align="center"><font color="#F20000"><?=$i?></font></td>
    		<?
    		}else{
    		?><td width="5%" height="24">
        <p align="center"><a href="index.php?p=uyeler&sayfa=<?=$i?>"><?=$i?></a></td>
    		<?
    		}
    	}
    }
    if($sayfa!=$sayfa_sayisi){
    $sonraki_sayfa=$sayfa+1;
    ?><td width="100" height="24">
        <p align="center"><span><a href="index.php?p=uyeler&sayfa=<?=$sonraki_sayfa?>">Sonraki Sayfa</a></span></td>
    <td width="75" height="24">
        <p align="center"><span><a href="index.php?p=uyeler&sayfa=<?=$sayfa_sayisi?>">Son Sayfa</a></span></td>
    <?
    }
    		}
    sayfakapat();
    }
    function duzenle(){
    global $baglanti;
    sayfaac("YÖNETİM PANELİ - ÜYELER");
    $uye_id = mysql_real_escape_string(strip_tags(trim($_GET["uye_id"])));
    $uyebilgicek=@mysql_query("select id, eposta, telno, adsoyad, seviye from "._mami."uyeler where id='$uye_id'");
    while($yazdir=@mysql_fetch_array($uyebilgicek)){
    	$db_uye_id=$yazdir["id"];
    	$eposta=$yazdir["eposta"];
    	$telno=$yazdir["telno"];
    	$adsoyad=$yazdir["adsoyad"];
    	$seviye=$yazdir["seviye"];
    ?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%" id="AutoNumber1">
    <form action="index.php?p=uyeler&lider=guncelle&uye_id=<?=$uye_id?>" method="post">
      <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="24%" height="24">&nbsp; E-POSTA ADRESİ</td>
        <td width="4%" height="24" align="center">:</td>
        <td width="72%" height="24"><input type="text" name="eposta" value="<?=$eposta?>" size="60"></td>
      </tr>
      <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="24%" height="24">&nbsp; ADI SOYADI</td>
        <td width="4%" height="24" align="center">:</td>
        <td width="72%" height="24"><input type="text" name="adsoyad" value="<?=$adsoyad?>" size="60"></td>
      </tr>
      <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="24%" height="24">&nbsp; TELEFON NUMARASI</td>
        <td width="4%" height="24" align="center">:</td>
        <td width="72%" height="24"><input type="text" name="telno" value="<?=$telno?>" size="60"></td>
      </tr>
      <tr style="Border-Color:#E6E6E6;Background-Color:#F2F2F2;Border-Style:Solid;Border-Width:1px" onmouseover="this.style.backgroundColor='#EAEAEA'" onmouseout="this.style.backgroundColor='#F2F2F2'">
        <td width="23%" height="24">&nbsp; ÜYELİK SEVİYESİ</td>
        <td width="4%" height="24" align="center">:</td>
        <td width="73%" height="24">&nbsp;<select name="seviye" style="width:323px" />
    	<?php
    if($seviye=="normal"){
    ?>
    <option value="normal" selected />NORMAL ÜYE</option>
    <option value="gold" />GOLD ÜYE</option>
    <?
    }elseif($seviye=="gold"){
    ?>
    <option value="normal" />NORMAL ÜYE</option>
    <option value="gold" selected />GOLD ÜYE</option>
    <?
    }else{
    ?>
    <option value="normal" />NORMAL ÜYE</option>
    <option value="gold" />GOLD ÜYE</option>
    <?
    }
    ?>
    	</select></td>
      </tr>
      <tr>
        <td width="100%" height="24" colspan="3">
        <p align="center"><input type="image" src="resimler/guncelle.jpg"></td>
      </tr>
      </form>
    </table>
    <?
    }
    sayfakapat();
    }
    function guncelle(){
    global $baglanti;
    sayfaac("YÖNETİM PANELİ - TAHMİN DÜZENLE");
    $uye_id = mysql_real_escape_string(strip_tags(trim($_GET["uye_id"])));
    	$eposta = addslashes($_POST["eposta"]);
    	$adsoyad = addslashes($_POST["adsoyad"]);
    	$telno = addslashes($_POST["telno"]);
    	$seviye = addslashes($_POST["seviye"]);
    $hata=NULL;
    $hata=NULL;
    if (!zararlikod($eposta))
    	$hata  = '<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, E-POSTA GEÇERSİZ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>';
    if(!$hata)
    	if (!mailkontrol($eposta))
    		$hata  = '<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, DOĞRU BİR E-POSTA YAZINIZ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>';
    if(!$hata)
    	if(!zararlikod($adsoyad))
    		$hata  = '<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, AD SOYAD GEÇERSİZ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>';
    if(!$hata)
    	if(!zararlikod($telno))
    		$hata  = '<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, TELEFON NUMARASI GEÇERSİZ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>';
    if(!$hata)
    	if(!zararlikod($seviye))
    		$hata  = '<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, ÜYELİK SEVİYESİ GEÇERSİZ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>';
    if($hata){
    	echo $hata;
    	header("Refresh: 5; url=index.php?p=uyeler&lider=duzenle&uye_id=$uye_id");
    }else{
    $eklebahem=@mysql_query("update "._mami."uyeler set eposta='$eposta', telno='$telno', adsoyad='$adsoyad', seviye='$seviye' where id='$uye_id'");
    if($eklebahem){
    ?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="200">
        <tr>
          <td width="100%" height="150">
          <p align="center">
          <img border="0" src="resimler/loading.gif" width="100" height="100"></p>
          <p align="center">TEBRİKLER, ÜYE HESABI BAŞARIYLA GÜNCELLENDİ</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>
    <?
    	header("Refresh: 5; url=index.php?p=uyeler&lider=duzenle&uye_id=$uye_id");
    	}else{
    ?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, TAHMİN GÜNCELLENEMEDİ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>
    <?
    header("Refresh: 5; url=index.php?p=uyeler&lider=duzenle&uye_id=$uye_id");
    	}
    }
    sayfakapat();
    }
    function sil(){
    global $baglanti;
    	sayfaac("YÖNETİM PANELİ - ÜYE SİL");
    $uye_id = mysql_real_escape_string(strip_tags(trim($_GET["uye_id"])));
    $hata=NULL;
    if (!zararlikod($uye_id))
    	$hata  = '<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, ÜYE GEÇERSİZ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>';
    if($hata){
    	echo $hata;
    	header("Refresh: 5; url=index.php?p=uyeler");
    }else{
    $eklebahem=@mysql_query("delete from "._mami."uyeler where id='$uye_id'");
    if($eklebahem){
    ?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="200">
        <tr>
          <td width="100%" height="150">
          <p align="center">
          <img border="0" src="resimler/loading.gif" width="100" height="100"></p>
          <p align="center">TEBRİKLER, ÜYE HESABI BAŞARIYLA SİLİNDİ</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>
    <?
    	header("Refresh: 5; url=index.php?p=uyeler");
    	}else{
    ?>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E8E8E8" width="100%" id="AutoNumber1" height="164">
        <tr>
          <td width="100%" height="63">
          <p align="center">
          <img border="0" src="resimler/hata.gif" width="32" height="32"></p>
          </p>
          <p align="center">ÜZGÜNÜM, SİSTEMDE HATA OLUŞTU, ÜYE HESABI SİLİNEMEDİ.</p>
          <p align="center">LÜTFEN BEKLEYİN, YÖNLENDİRİLİYORSUNUZ...</td>
        </tr>
        </table>
    <?
    header("Refresh: 5; url=index.php?p=uyeler");
    	}
    }
    sayfakapat();
    }
    $lider=$_GET["lider"];
    if(!isset($machine)) $lider="anasayfa";
    switch ($machine)	{	
    case "anasayfa": anasayfa();break;
    case "duzenle": duzenle();break;
    case "guncelle": guncelle();break;
    case "sil": sil();break;
    }
    ?>
  • 08-07-2014, 14:32:30
    #2
    Bu scripti nereden buldunuz?
  • 08-07-2014, 15:13:02
    #3
    chedmade adlı üyeden alıntı: mesajı görüntüle
    Bu scripti nereden buldunuz?
    Buldunuz mu ne bulmasi ??
  • 08-07-2014, 15:21:31
    #4
    medyamio adlı üyeden alıntı: mesajı görüntüle
    Buldunuz mu ne bulmasi ??
    Yada şöyle sorayım, Bu scripti kimden aldınız?
  • 08-07-2014, 18:58:38
    #5
    medyamio adlı üyeden alıntı: mesajı görüntüle
    Buldunuz mu ne bulmasi ??
    Cevap alamadım hocam?
  • 09-07-2014, 04:43:01
    #6
    Üyeliği durduruldu
    pm gönderildi.
  • 09-07-2014, 10:01:45
    #7
    Pm gönderdim