This is a discussion on "adding to database" within the Classic ASP section. This forum, and the thread "adding to database are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
adding to database
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
adding to database
can someone tell me (in simple terms!!) how to add a password (pwd) and a username (uid) to a database?
|
|
|
|
#2
|
|||
|
|||
|
Set objRS = objConn.Execute("INSERT INTO table (username,password) VALUES ('admin','secret')")
|
|
#3
|
||||
|
||||
|
thanks... is that it?! seems so simple...
|
|
#4
|
||||
|
||||
|
it says:
Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: 'objConn' /login/slog/regcheck.asp, line 56 any ideas? |
|
#5
|
|||
|
|||
|
there is a tutorial at www.webthang.co.uk, (select dreamweaver tutorials) the tutorials here are really easy to follow step by step, the way I need them.
|
|
#6
|
|||
|
|||
|
objConn should be the name of your connection object.
|
|
#7
|
||||
|
||||
|
it is, i put the exact code you showed me... but it doesn't like it for some reason...
|
|
#8
|
|||
|
|||
|
can you post the code for your asp page so i can take a look?
|
|
#9
|
||||
|
||||
|
will do as soon as I get home!
|
|
#10
|
||||
|
||||
|
heres the code: index.asp posts the data to check.asp:
check.asp:
|
|
#11
|
||||
|
||||
|
Change this code:-
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
||||
|
||||
|
i get this problem now...
check.asp:
Error Type: Microsoft JET Database Engine (0x80040E10) No value given for one or more required parameters. /login/slog/regcheck.asp, line 48 ideas?! |
|
#13
|
|||
|
|||
|
Ben, A good way to find out which parameter is missing (or is incorrect) is to write out the SQL query to the screen, like this:
Hope that helps! |
|
#14
|
||||
|
||||
|
nothings working... all the values ARE there
|
|
#15
|
|||
|
|||
|
So when you response.write SQL it looks fine?
|
|
#16
|
||||
|
||||
|
yea it looks as it should
|
|
#17
|
|||
|
|||
|
and what error message are you getting now?
|
|
#18
|
||||
|
||||
|
same one...
|
![]() |
| Tags |
| adding, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding a new page | crackafaza | PHP Forum | 7 | Feb 8th, 2008 22:08 |
| Adding quizzes | hawashp | Web Page Design | 12 | Oct 5th, 2007 12:04 |
| Adding a calendar? | Stefan83 | Website Planning | 1 | May 8th, 2007 19:18 |
| XML Code for transfering data from one SQL Server Database to another database | plolla | Other Programming Languages | 1 | Aug 3rd, 2006 18:37 |
| Adding RETURN line breaks to a database | Lizard- | Classic ASP | 2 | Aug 19th, 2004 09:49 |