אשכול: עזרה בקוד PHP
View Single Post
ישן 30-10-07, 21:11   # 1
ColBot
חבר חדש
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 33
הודעות: 25

ColBot לא מחובר  

עזרה בקוד PHP

שלום לכם.
אני מנסה לעשות קוד כזה שיציג הודעות לפי האיידי.
הינה מה שאני ניסיתי לעשות אבל זה מראה לי דף לבן.
מה הבעיה בקוד?
PHP קוד:
<? php
$link 
mysql_connect("localhost" "ddname" "password") or die(mysql_error());  
mysql_select_db("dname",$link);

if (!
$_GET[id]) {
    echo 
"Eror: ID not select";
}
else {
    
$query "SELECT * FROM gui WHERE id = $_GET[id]";
    
$result mysql_query($query $link);

    while(
$row mysql_fetch_array($result)) {

        echo 
"<table border='1' width='527' height='482'>";
        echo 
"<tr>"
        echo 
"<td height='23' width='131' valign='top'>$row['name']</td>"
        echo 
"<td height='48' width='380' rowspan='2' valign='top'>$row['gname']</td>"
        echo 
"</tr>";
        echo 
"<tr>";
        echo 
"<td height='23' width='131'>$row['date']</td>"
        echo 
"</tr>";
        echo 
"<tr>";
        echo 
"<td height='426' width='527' colspan='2'>$row['msg']</td>"
        echo 
"</tr>";
        echo 
"</table>";
    }
}
?>
תודה לכל העוזרים.
  Reply With Quote