View Single Post
ישן 15-09-06, 17:09   # 9
בניה
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: נחושה
הודעות: 3,434

בניה לא מחובר  

ב"ה


שבת שלום גם לך!!!

PHP קוד:
<?Php
   
require "db.php";
?>
<html dir="rtl">
    <head>
        <title>Comments</title>
    </head>
<body>
<font face="Arial" size="2">
<p align="right">
<?Php
$select_comments 
mysql_query("SELECT * FROM `text`");
    if(@
mysql_num_rows($select_comments) == 0){
       echo 
'לא נמצאו תגובות במסד הנתונים';
  }else {
     while(
$row mysql_fetch_array($select_comments)){
    
$img htmlspecialchars($row['img']);
    
$title htmlspecialchars($row['title']);
    
$content htmlspecialchars($row['content']);
    
$id htmlspecialchars($row['id']);
         echo 
'
                <table>
                                     <tr>
                              <td>
<font face="Arial" size="4" color="#000080">'
.$title.'</font></b>

                              </td>
                     </tr>

                     <tr>
                              <td>
<a href="post.php?id='
.$id.'">
<img src='
.$img.' width="144" height="109" border="0" style="border: 1px solid #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
                              </td>
                     </tr>
                     <tr>
                              <td>
'
.$content.'
<br>
<a onclick="return confirm(\'אתה בטוח שבירצונך למחוק הודעה זאת?\')" href="remove1.php?id='
.$id.'">מחק</a>
&nbsp;&nbsp;<a href="edit.php?id='
.$id.'">ערוך</a>

                              </td>
                     </tr>
         '
;
     }
}
$id $_GET['id'];
?>
</font></b></p>