עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

תאים כפולים בטבלה ב php

Featured Replies

פורסם

בבסיס נתונים יש טבלה

| Intel | 478 | P4 |
| AMD | 754 | AXP Mobile |

וקובץ php שאמור להוציא אותה (כולה) באתר

<?php
if (!mysql_select_db('TEST4'))
die("Can't select database TEST4");

echo ("<table><tr><td>manufacturer</td><td>socket</td><td>cpu</td></tr>") ;
$result = mysql_query("SELECT * FROM TBL_HARDWARE");
while($row = mysql_fetch_array($result))
{
echo ("<tr>") ;
foreach ($row as $cell)
{
echo ("<td>".$cell."</td>") ;
}
echo ("</tr>") ;
}
echo ("</table>") ;
?>

הקובץ שהגולש באתר רואה נראה כך

| manufacturer | socket | cpu |
| Intel | Intel | 478 | 478 | P4 | P4 |
| AMD | AMD | 754 | 754 | AXP Mobile | AXP Mobile |

ניסיתי להוסיף בדיקה מאיפה זה מגיע

...
$i = 0 ;
...
echo ("<td>".$i++.$cell."</td>") ;
...

תוצאה

| manufacturer | socket | cpu |
| 0Intel | 1Intel | 2478 | 3478 | 4P4 | 5P4 |
| 6AMD | 7AMD | 8754 | 9754 | 10AXP Mobile | 11AXP Mobile |

פורסם
  • מחבר

עובד - תודה

  • 4 שבועות מאוחר יותר...
פורסם

נחמד וזה עובד מצויין תודה רבה

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.