
29-08-2006, 07:53
|
|
|
|
חבר מתאריך: 08.08.06
הודעות: 38
|
|
|
בעיה עם עוגיות
יש לי את הקוד הבא
קוד PHP:
<? include "top.php"; include "config.php"; $query = mysql_query("SELECT * FROM `info` WHERE `usr`='$user'"); while ($row = mysql_fetch_array($query)) { $id = $row['id']; $usr = $row['usr']; $pas = $row['pas']; $user = $_COOKIE['forum_user']; $pass = $_COOKIE['forum_pw']; } if (($usr == $user) and ($pas == md5($pass))){ $post = $post+1; echo "<form action=add.php?cat=$cat method=post> כותרת: <input type=text name=title><br> תוכן: <textarea rows=10 cols=70 name=cont></textarea><br> <input type=hidden name=pid value=$pid> <input type=hidden name=post value=$post> <input type=hidden name=uid value=$id> <input type=hidden name=cat value=$cat> <input type=submit value='הוסף'></form>"; }else{ echo "אינך מחובר"; } ?>
ולמרות שאני מחובר הוא מציין "אינך מחובר"
האם יש טעות בקוד? אשמח אם תתקנו אותי
_____________________________________
"מתכנת זה אדם שפותר בעיה שעל קיומה לא ידעת, בדרך שאינך מבין"
נערך לאחרונה ע"י Crayon בתאריך 29-08-2006 בשעה 07:55.
|