Αρχή :: Ενότητες :: Scripting :: Απαντήσεις     
 

Forum

asp error - Από {ehatzika}

geia sas.exw kanei mia forma pou stelnei ta dedomena sti basi.i' mallon thelw na ta steilei.xrisimopoiw dreamweaver asp vbscript kai access.mou bgazei error Cannot update. Database or object is read-only.paw na allaksw tis idiotites tis basis alla den exei tin kartela gia tin allagi auti, mono general kai summary. exw win xp.ti mporei na ftaiei?stelnw kai ta dio arxeia mipws katalabete kati apo auta.mikra einai.prwti fora prospathw na kanw kati tetoio alla elpizw o tropos genikws na min einai asxetos.
1.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>


Untitled Document



















Last Name:
First Name:









 



























 









 


 







2.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>


Untitled Document



<%
Dim dbConn
Dim rsAddregistered_users
Dim strSQL 'Holds the SQL query to query the database

Set dbConn = Server.CreateObject("ADODB.Connection")

dbConn.Open "DSN=cinema"
Set rsAddregistered_users = Server.CreateObject("ADODB.Recordset")
'strSQL = "SELECT tblregistered_users.fname, tblregistered_users.lname, tblregistered_users.email, tblregistered_users.passwd, tblregistered_users.address, tblregistered_users.city, tblregistered_users.birthdate FROM tblregistered_users;"
strSQL = "SELECT registered_users.fname, registered_users.lname FROM registered_users;"


rsAddregistered_users.CursorType = 2
rsAddregistered_users.LockType = 3
rsAddregistered_users.Open strSQL, dbConn
rsAddregistered_users.AddNew


rsAddregistered_users.Fields("fname") = Request.Form("fname")
rsAddregistered_users.Fields("lname") = Request.Form("lname")


rsAddregistered_users.Update
rsAddregistered_users.Close
Set rsAddregistered_users = Nothing
Set dbConn = Nothing


Response.Redirect "registered_users1.asp"
%>








 


Απάντηση από:ehatzika

ok min asxoliste to elisa to problima.

Απάντηση από:Alex

http://tip.gr/dev/projects/answers.asp?pid=15&qid=2461



tip: Οι σταγόνες του νερού έχουν την δύναμη να κουνήσουν ακόμα και μεγάλα βράχια . (ΠΛΟΥΤΑΡΧΟΣ) * F5 για νέο tip

   Πίσω στην προηγούμενη σελίδα






Η Εταιρία | Web Hosting | Domain names | Web Information | Υπηρεσίες | Resellers | Υποστήριξη |
Copyright © 2007–09 4GR.NETWORKS, All rights reserved.