עבור לתוכן
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.

שאלה- ASP

Featured Replies

פורסם

אוקי... אז יש לי שאלה קטנה בASP. יש לי "מערכת תגובות" כאשר כל תגובה נשמרת בDB עם שלושה עמודות- ID(מס' אוטומתי), שם והודעה.

עכשיו, במערכת הADMIN שאני בניתי, אני עושה מחיקת תגובות, כאשר על מנת למחוק תגובות צריך לסמן V ליד מה שאתה רוצה למחוק(זה CHECKBOX).

זה כתוב באופן הבא:


<%
Set rs=Con.Execute("Select * from tbl_post order by ID DESC")
do while not rs.eof
%>
<tr>
<td width="4%">
<input type="checkbox" name="post" id="post" value="<%=rs("ID")%>">
</td>
<td>
<%
Response.Write((rs("Name"))&"<br>"&(rs("Post"))&"<hr>")
%>
</td>
</tr>
<%
rs.movenext
loop
%>

עכשיו אני צריך לעשות שאילתת מחיקה לתגובות הספציופיות שהמנהל סימן. כשאני מקבל את המשתנה post, אז הוא מקבל את הצורה הבאה:

25, 21, 19 וכו'(כאשר המספרים הם הID של התגובה)

כאשר אני מריץ את שאילתת המחיקה הוא כמובן נותן לי שגיאה, כיוון וזה צריך להיות מס' יחיד, ללא רווחים ופיסקים. עכשיו, אני יכול להעיף את הפיסקים, אבל בעזרת איזו פקודה אני יכול "לפצל" את המספרים?

פורסם

תעשה


"delete from tbl_post where ID in (" & request("post") & ")"

ארכיון

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

דיונים חדשים

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.