- This topic has 5 replies, 4 voices, and was last updated 15 years, 3 months ago by .
-
Topic
-
when i add the code to add the message to the database i get an error any ideas? set insert “INSERT INTO NOTIFICATION VALUES (?,?,?,?,?,?,?,?,?)”
odbc SQLPrepare $hstmt $insert SQL_NTS
#Bind varibles to columns
odbc SQLBindParameter $hstmt 1 SQL_PARAM_INPUT SQL_C_SLONG SQL_INTEGER 1000 0 mrn 1000 NULL
odbc SQLBindParameter $hstmt 2 SQL_PARAM_INPUT SQL_C_SLONG SQL_INTEGER 1000 0 fin 1000 NULL
odbc SQLBindParameter $hstmt 3 SQL_PARAM_INPUT SQL_C_CHAR SQL_CHAR 1000 0 lname 1000 NULL
odbc SQLBindParameter $hstmt 4 SQL_PARAM_INPUT SQL_C_CHAR SQL_CHAR 1000 0 fname 1000 NULL
odbc SQLBindParameter $hstmt 5 SQL_PARAM_INPUT SQL_C_SLONG SQL_INTEGER 1000 0 dob 1000 NULL
odbc SQLBindParameter $hstmt 6 SQL_PARAM_INPUT SQL_C_CHAR SQL_CHAR 1000 0 sex 1000 NULL
odbc SQLBindParameter $hstmt 7 SQL_PARAM_INPUT SQL_C_SLONG SQL_INTEGER 1000 0 ssn 1000 NULL
odbc SQLBindParameter $hstmt 8 SQL_PARAM_INPUT SQL_C_CHAR SQL_CHAR 1000 0 company 1000 NULL
odbc SQLBindParameter $hstmt 9 SQL_PARAM_INPUT SQL_C_CHAR SQL_CHAR 20000 0 adtmsg 20000 NULL
#Insert values into columns
set insert_call [set mrn $ADT_mrn; set fin $ADT_fin; set lname $ADT_lname; set fname $ADT_fname; set dob $ADT_dob; set sex $ADT_sex; set ssn $ADT_ssn; set company $INS_LIST; set adtmsg $ADT_msg; odbc SQLExecute $hstmt]
echo insert_call $insert_call
- The forum ‘Cloverleaf’ is closed to new topics and replies.