View Single Post
ישן 08-11-08, 14:37   # 17
dor77
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jan 2008
הודעות: 1,650

dor77 לא מחובר  

שיניתי את זה אבל יש בעיה.

PHP קוד:
<?php    
    
mysql_connect
("000""000""000");  
mysql_select_db("000");  

$result mysql_query("SELECT username FROM test WHERE id={$_GET['id']}");   
while(
$row=mysql_fetch_array($result))   
{   
    
echo 
"<div style='width:400px; height:100px;  border-width: 2px; border-style: solid; border-color: #dcdcdc; background-color:#f5f5f5; font-family:Arial; color:#000100; padding-right: 8px; padding-top: 2px; font-size: 14px; font-weight: bold; text-align:right;'>".$row['username']."</div><br>";   
}     
?>
הוא נותן לי שגיאה עם result.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/fixst.awardspace.co.uk/show.php on line 7

אתמול אכן הייתה בעיה, המשתנה למעלה לא היה מתאים ל result אבל עכשיו אני משתגע.
מה גם, אני מנסה לשים את הקוד שנתתי לכם אתמול, עם הבעיה של id, זה גם לא פועל.
בקיצור משהו פה דפוק חחח אולי אני ?
__________________
מתכנת php אמין ומקצועי.
מחירים נוחים!
יצירת קשר: 0544378743
  Reply With Quote