15-09-2007, 11:52
|
|
|
חבר מתאריך: 21.01.06
הודעות: 813
|
|
אוקי, הבנתי את הטעות והסתדרתי =]
קוד PHP:
<?php require ("config.php"); $couser = $_COOKIE['userpro']; $a = mysql_query ("SELECT * From uses WHERE `user_name`='$couser'"); mysql_error(); $array = mysql_fetch_array ($a); $userprofile = array ( name => $array['user_name'] , pass => $array['user_pass'] , fname => $array['user_fname'] , faname => $array['user_faname'] , age => $array['user_age'] ); echo "$userprofile[name]<br>"; echo "$userprofile[pass]<br>"; echo "$userprofile[fname]<br>"; echo "$userprofile[faname]<br>"; echo "$userprofile[age]<br>"; ?>
יצרתי גם מערך, שמכיל את הפרטים מהמסד של אותו משתמש..
_____________________________________
--- ! Area Close ! ---
|