View Single Post
Old 01-03-2008, 11:59 PM   #14 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

don't be inpatient...
don't be inpatient...
don't be inpatient!!

First off, your page does NOT open, so I can't help you on that side.

Try this one, and first off, you need to improve your scriptskill because it's a damn mess. Sorry, but at first it was like finding a needle in a haystack ... and no, in_array didn't work.

PHP Code:
<?php
    
    ob_start
();
    
    include(
"config.php") ;
    
error_reporting(E_ALL);  
    
    if ((!empty(
$_POST[name])) && (!empty($_POST[pass]))) {
    
        
$result mysql_query("SELECT * FROM `members`") ;
        
            while (
$row mysql_fetch_array($result)) {
                
$id $row[id] ;
            }
            
        
$query 'SELECT user FROM members WHERE pass = "'.$_POST[pass].'"';
        
$res mysql_query($query) ;
        
$count mysql_num_rows($res) ;
        if (
$count == 1) {
             if ((!isset(
$_COOKIE[user])) && (!isset($_COOKIE[pass]))) {
                   
$timestamp_expire time() + 365*24*3600;
                
setcookie('user'$_POST['name'], $timestamp_expire);
                
setcookie('pass'$_POST['pass'], $timestamp_expire);
                
setcookie('id'$id $timestamp_expire);
                
                echo 
'<meta http-equiv="refresh" content="0;url=user_p.php"';  
             } else {
                echo 
'<meta http-equiv="refresh" content="0;url=user_p.php"';
            }
        } else {
            echo 
"the nickname or password are false try again"
        }
    } else { 
        echo 
"would you please full the forms";
    }
    
    
ob_end_flush();
    
?>
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote