Tekil Mesaj gösterimi
  #2 (permalink)   eTicaret 
Alt 2006-06-29, 21:50
Angelo - ait Kullanıcı Resmi (Avatar)
Angelo Angelo isimli üyemiz çevrimdışıdır. (Offline)
Platinum Member
 
Üyelik tarihi: Dec 2004
Nerden: Phoenix,AZ
Mesajlar: 4.413
Tecrübe Puanı: 8
eTicaret: %100/4
Angelo is just really niceAngelo is just really niceAngelo is just really niceAngelo is just really nice
Standart

PHP- Kodu:
$q mysql_query("SELECT user_id FROM tablo");

function 
sifre_uret($num) {
$str "ABCDEFGHIJKLMNOPRSTUWVYZ1234567890";
  for (
$i=0$i <= $num$i++) {
  
$harf rand(1,34);
  
$sifre $sifre $str{$harf};
  }
return 
$sifre;
}

while (
$a mysql_fetch_array($q)) {
$uret sifre_uret("5");
mysql_query("UPDATE tablo SET userpass='$uret' WHERE user_id='$a[user_id]'");
echo 
"$a[user_id] yeni sifresi: $uret<br>";

__________________
peace love union respect
Alıntı ile Cevapla