הרשם שאלות ותשובות רשימת חברים לוח שנה חיפוש הודעות מהיום סמן פורומים כנקראו

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 18-04-06, 15:32   # 5
Alter
תודה על תרומתך.
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 3,103

Alter לא מחובר  

כל הasp:

קוד:
<%
set c=Server.CreateObject("adodb.connection")
set r=Server.CreateObject("adodb.recordset")
c.connectionString="provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &Server.MapPath("\..\db.mdb") & ""
c.open
ida = Request.QueryString("idl")
set rst=c.execute("select * from links where id = " & ida)
response.write("<form action='admin_links_edit.asp' method='POST' name='edit'>")
response.write("<font class='text'>שם הדף:</font>")
response.write("<input type='text' name='name' maxlength='50' size='20' value='"& rst.fields("name") &"' class='textBoxSmall'><br><br>")
response.write("<font class='text'>קישור לדף:</font>")
response.write("<input type='text' name='link' maxlength='255' size='50' value='"& rst.fields("link") &"' class='textBoxSmall'><br><br>")
response.write("<input type='submit' value='שליחה' class='textBoxSmall'><input type='hidden' name='edit' value='editing'>")
response.write("</form>")

action = request("edit")
if action = "editing" Then
	set ida = Request("idl")
	c.execute("update links set `name` = '"&request.form("name")&"' , `link` = '"&request.form("link")&"' where id=" & ida)
end if
c.close
Set c=nothing 
Set r=nothing 
Set rst=nothing 
%>
כאשר שורה 21 היא:
set rst=c.execute("select * from links where id = " & ida)

הבעיה היא עם ההגדרה של הwhere בselect.
את הRequest. סידרתי .
הפכתי את השורה ל
PHP קוד:
ida Request.QueryString("idl"
לפני זה לא היהQueryString, עשיתי את זה כי המורה רשמה לי במייל:
קוד:
You can't write just Request, this is an object and you must use one of his properties or methods, like Request.form or Request.QueryString and so on.
__________________
Alter.
  Reply With Quote
 

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 

כלים לאשכול
תצורת הצגה

חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 19:47.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ