are you using something like this? ::

set dbconn = server.createobject("ADODB.Recordset")
dbconn.open "dsn=yourdsnname;uid=;pwd=;driver=mysql"

sql = "SELECT * FROM tablename"
recordset.open sql, dbconn

insert = "INSERT INTO tablename (column1, column2) VALUES
('valueforcolumn1', 'valueforcolumn2')
dbconn.execute insert

It's much easier that way.  2nd Question:  The only thing I can think of is
if you are using a WHERE clause.  You must be new to this.  (by the way,
cool name dude).  Make sure that database is connecting and you have the
right recordset settings.

- Deryck H
- http://www.comp-u-exchange.com
----- Original Message -----
From: "vincent de vilder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 1:29 AM
Subject: Addnew problem


> Hi,
>
> When i create a webpage  in frontpage in ASP code, de Addnew function to
add
> a record in my mysql database does not function properly.
> The record is inserted , but the other first existing record will be
> deleted.
>
> What is going wrong here ?
>
> ALso when i create a new database with a column ('test') for example, it
is
> not possible to add records when the database is empty, so i have to
manualy
> add a record in the database first.
>
> What is here the problem.
>
> thanks
>
> Vincent de vilder
> [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php 

- Deryck H
- http://www.comp-u-exchange.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to