www.webdeveloper.com
Results 1 to 8 of 8

Thread: Error in row

Hybrid View

  1. #1
    Join Date
    Apr 2004
    Posts
    71

    Error in row

    hi all,

    I have an error when I was creating a web to add data to microsoft access database
    the error is "Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005)[Microsoft][ODBC Microsoft Access Driver]Error in row
    /Add.asp, line 54
    "

    detail of my database:
    the name of the database is wardailer
    the name of the table is table1
    the primary key is ID






    the code here :
    _______________________________
    <HTML><HEAD>


    <%
    Function ChkString(str)

    str = replace(str, "<", "&lt;", 1, -1, 1)
    str = replace(str, ">", "&gt;", 1, -1, 1)

    ChkString = str
    End Function

    name = trim(ChkString(Request.form("name")))
    email = trim(ChkString(Request.form("email")))
    address = trim(ChkString(Request.form("address")))
    City = trim(ChkString(Request.form("city")))
    State = trim(ChkString(Request.form("state")))
    Country = trim(ChkString(Request.form("country")))
    Zipcode = trim(ChkString(Request.form("zip")))
    Password = trim(ChkString(Request.form("password")))

    ConnString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("member.mdb")

    set my_conn= Server.CreateObject("ADODB.Connection")
    my_Conn.Open ConnString
    set rscheck = my_conn.Execute ("Select email from member where email='" & email & "'")

    if rscheck.eof then
    been_here_before="No"
    end if

    RScheck.close
    set rs = server.CreateObject("adodb.recordset")
    if been_here_before="No" then
    sql ="select * from member"

    RS.open Sql,my_conn,1,3
    RS.AddNew
    RS("Name")=name
    RS("email")=email
    RS("address")=address
    RS("city")=city
    RS("state")=state
    RS("country")=country
    RS("zipcode")=zipcode
    RS("password")= password
    RS("memberdate")= now()

    RS.update ' the error is here in this line
    %>
    </HEAD>
    <body bgcolor="#99ccff">

    <center><font face="Verdana" size="2">Your Account Has Been Processed!! <br>
    Your User ID is : <%=email%> &nbsp;, and your password is : <%=password%>
    </font>
    <p><a href="login2.asp"><font face="Verdana" size="2">Go to Login Page</font> </a>

    </p></center>

    <%
    else
    %>
    <center><font face="Verdana" size="2">Your have signup already with this email<br>
    Please signup with another your email address.
    </font>
    <p><a href="signup.asp"><font face="Verdana" size="2">Sign up Again! </font> </a></center>



    <%
    end if

    rs.close
    my_conn.Close
    set my_conn = nothing
    set rs = nothing
    %></P></BODY></HTML>
    _________________________________
    help me plz
    thanks alot

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    Try using SQL to insert data into the table. Employ the INSERT INTO statement.

    Regards.

  3. #3
    Join Date
    Apr 2004
    Posts
    71
    how to implement sql statements here ???

  4. #4
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    Here you go.
    Code:
    sql = "INSERT INTO member (Name, email, address, city, state, country, zipcode, password, memberdate)" & _
          " VALUES (" & _
          "'" & name & "', " & _
          "'" & email & "', " & _
          "'" & address & "', " & _
          "'" & city & "', " & _
          "'" & state & "', " & _
          "'" & country & "', " & _
          "'" & zipcode & "', " & _
          "'" & password & "', " & _
          "#" & now() & "#"
    Regards,
    Andrew Buntine.

  5. #5
    Join Date
    Apr 2004
    Posts
    71
    hi my friend buntine

    the problem was fixed

    without using sql statement really the problem I found it in database itself

    thanks buntine

  6. #6
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298

  7. #7
    Join Date
    Oct 2012
    Posts
    1
    hi al_3asel,

    I have the same problem you have mentioned here.

    would you tell me how you fixed that?

    thx alot

  8. #8
    Join Date
    Sep 2011
    Posts
    60
    Just make sure all values you assigned is valid (check for missing value in not null fields, numeric fields must have numeric values - empty is not a numeric, length of value must be less them field size for character values)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.35209 seconds
  • Memory Usage 3,119KB
  • Queries Executed 13 (?)
More Information
Template Usage (30):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (8)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (27):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./includes/functions_threadedmode.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (71):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates