הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   [PHP]מה הבעיה בקוד הזה? (https://hosts.co.il/forums/showthread.php?t=22440)

misterdino 24-05-06 15:15

[PHP]מה הבעיה בקוד הזה?
 
PHP קוד:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="rtl" lang="he">
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1255" />
<title></title>
</head>
<body>
<?php
include ("errors.php");
include (
"fundtions.php");
connect_db("localhost","drecom","111111","nezah");
 if (
$_POST['username']==0)
   {
     echo 
$null_signup;
     die;
   }
$query=mysql_query("SELECT * FROM users WHERE $_post['username']=username AND $_post['password']=password");
  if (
mysql_num_rows($query)==0)
   }
    echo 
$uncorreect_username_password;
    die;
   {
ckkdkdkd
?>
</body>
</html>

השגיאה:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in H:\אתר\files\chek_login.php on line 17


תצודה לעוזרים:)

BBman 24-05-06 15:20

לא ניסיתי את הקוד , אך תנסה זאת :

PHP קוד:

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html dir="rtl" lang="he"> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=windows-1255" /> 
<title></title> 
</head> 
<body> 
<?php 
include ("errors.php"); 
include (
"fundtions.php"); 
connect_db("localhost","drecom","111111","nezah"); 
 if (
$_POST['username']==0
   { 
     echo 
$null_signup
     die; 
   } 
$user    =    $_post['username'];
$pass    =    $_post['password']
$query=mysql_query("SELECT * FROM `users` WHERE `password`='$pass' , `username`='$user'"); 
  if (
mysql_num_rows($query)==0
   } 
    echo 
$uncorreect_username_password
    die; 
   { 
ckkdkdkd 
?>
 
</body> 
</html>



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

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