הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 02-04-07, 12:46   # 1
username1
חבר פורום
 
מיני פרופיל
תאריך הצטרפות: Mar 2007
הודעות: 182

username1 לא מחובר  

שגיאה בקובץ התחברות ( PHP )

הקובץ מכיל את הקוד הנ"ל:

PHP קוד:
<center><font face=arial size=3>
<? 
include "includes/config.php";
include 
"includes/includes/db.php";

$submit $_POST['submit'];
$username $_POST['username'];
$password $_POST['password'];

if(
$submit) {
$sql 
SELECT * 
FROM members WHERE 1 
AND username = '$username' 
AND password = '$password' 
"

    
$result mysql_query($sql) or die("בעייה : " mysql_error()); 
    while (
$row mysql_fetch_array($result)) { 
        
$username $row["username"]; 
        
$password $row["password"];
        
$id $row["id"];
        }
if(!
mysql_num_rows($result)) {
echo 
"שם משתמש או סיסמה שגויים";
exit();
}

    
setcookie("user"$username,time() + 3600);
    
setcookie("pw"$passwordtime() + 3600);
    
setcookie("id"$idtime() + 3600);
echo 
"<meta http-equiv='refresh' content='5; url=index.php'>";
}
?> </center></font>
והשגיאה:
ציטוט:
Warning: Cannot modify header information - headers already sent by
אשמח לעזרה.
__________________
סטיבן, איש מכירות של חברת Sprint-Serv
מייל: Steven@Sprint-Serv.net
תא קולי: 057-6500000 מספר מנוי 3333 ( נא השאירו הודעות בתא הקולי ואחזור אליכם בהקדם )

I close my eyes and I can see you dead
  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. הזמן כעת הוא 23:15.

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