salima
11-01-2013, بتوقيت غرينيتش 02:24 PM
http://www.dzbatna.com/images/icons/questionmark.gif ط·ظ„ط¨ ظ…ط³ط§ط¹ط¯ظ‡ ظپظٹ ط§ظ„ظƒظˆظƒظٹط² (http://www.dzbatna.com/t1199861/)
بسم الله الرحمن الرحيم
بسوي سكريبت script يتطلبت تسجيل دخول بس الكوكيز مايزبط معي
رمز PHP:
<code style="white-space:nowrap"> <code> <?php
include("config.php");
$user = $_POST['username'];
$pass = $_POST['password'];
if($user == "" || $pass == ""){
header("location:index.php");
die;
}
$hatem = @mysql_query("select * from user where username='$user' and password='$pass'");
$menna = @mysql_num_rows($hatem);
if($menna == 1){
setcookie("user","pleasehelpme",time()+250);
$status = @mysql_query("update user set status = 'online' where username='$user' and
password='$pass'");
header("location:main_page.php");
die;
}
else{
header("location:index.php");
}
?> </code> </code>
بسم الله الرحمن الرحيم
بسوي سكريبت script يتطلبت تسجيل دخول بس الكوكيز مايزبط معي
رمز PHP:
<code style="white-space:nowrap"> <code> <?php
include("config.php");
$user = $_POST['username'];
$pass = $_POST['password'];
if($user == "" || $pass == ""){
header("location:index.php");
die;
}
$hatem = @mysql_query("select * from user where username='$user' and password='$pass'");
$menna = @mysql_num_rows($hatem);
if($menna == 1){
setcookie("user","pleasehelpme",time()+250);
$status = @mysql_query("update user set status = 'online' where username='$user' and
password='$pass'");
header("location:main_page.php");
die;
}
else{
header("location:index.php");
}
?> </code> </code>