הרשם שאלות ותשובות רשימת חברים לוח שנה חיפוש הודעות מהיום סמן פורומים כנקראו

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 02-12-05, 16:17   # 1
Kuchi
הוסטסניון
 
Kuchi's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: אור יהודה
גיל: 37
הודעות: 2,540
שלח הודעה באמצעות MSN אל Kuchi

Kuchi לא מחובר  

זה כל הקוד

PHP קוד:
    $result2=mysql_query("SELECT * FROM `members`");
if (!
$result2)
    die(
"ERROR: error occured in MySQL query.");
while (
$row=mysql_fetch_array($result2))
{
     
$user_table[$row['user']] = $row['sisma'];
}
print_r($user_table);
// Check if data was posted to script
if ($_POST)
{
    
// Loop through table
    
foreach($user_table as $username=>$password)
    {
        
// Check if md5's of user/pass match passed values
        
if (($_POST['username_md5'] == md5($username)) AND ($_POST['password_md5'] == md5($password)))
        {
            
// The user/pass combo matched
            
echo '1';
            exit;
        }
    }
// The user/pass combox did not match
echo '0';
exit;
}

else
{
    
// Output message if nothing is posted (eg. if script is loaded into a web-browser)
    
echo "$user_table";

  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 

כלים לאשכול
תצורת הצגה

חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 18:14.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ