write to a database

Results 1 to 3 of 3

Thread: write to a database

  1. #1
    kh Guest

    Default write to a database

    How do I write info to the data base tables?

  2. #2
    Join Date
    Dec 1969

    Default RE: write to a database

    Get a copy of Wrox Press's "Beginning ASP Databases"

  3. #3
    Join Date
    Dec 1969

    Default RE: write to a database

    Here is an example of the code to write to a table in a database.<BR><BR>mySQL="Insert into tablename (tablefield1, tabelfield2, tablefield3) values (&#039;" & formfield1 & "&#039;, &#039;" & formfield2 & "&#039;, &#039;" & formfield3 & "&#039;)"<BR><BR>Hope that helps. You will have to have pulled the field info from the form prior to this. This is simply the portion that inserts that info into the database. If you&#039;ve already done the bit where you fill in some fields and when you hit submit it brings up a page that showed you what you had entered, you have the form part down and essentially insert this into your code after the display portion. Then it shows the user what they entered AND puts it into the table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts