hi.I have this page to select and insert form fields:
<CFLOOP list="#form.fieldNames#" index="x">
<CFSTOREDPROC procedure="sp_Eman_AddSupplements"
dataSource="#session.eManager.datasource#">
<CFPROCPARAM type="IN" CFSQLType="CF_SQL_VARCHAR"
value="#form.supplementIng#" dbVarName="@supplementIng">
<CFPROCPARAM type="IN" CFSQLType="CF_SQL_VARCHAR"
value="#form.supplementAmount#" dbVarName="@supplementAmount">
<CFPROCPARAM type="IN" CFSQLType="CF_SQL_VARCHAR"
value="#form.supplementDaily#" dbVarName="@supplementDaily">
<CFPROCPARAM type="IN" CFSQLType="CF_SQL_INTEGER"
value="#form.productID#" dbVarName="@productID">
</CFSTOREDPROC>
</CFLOOP>
and the sp_eman_AddSupplement is:
CREATE PROCEDURE sp_Eman_AddSupplements
@supplementIng varchar(250),
@supplementAmount varchar(15),
@supplementDaily varchar(15),
@productid int
AS
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET LOCK_TIMEOUT 4000
SET NOCOUNT ON
SELECT TOP 1 product_id
FROM tbl_product_supplement
WHERE product_id =
@productid AND
supplement_ingredient = @supplementIng AND
supplement_amount = @supplementAmount AND
supplement_daily =@supplementDaily
IF (@@ROWCOUNT = 0)
BEGIN
INSERT INTO tbl_product_supplement
(product_id, supplement_ingredient, supplement_amount,
supplement_daily)
VALUES
(@productID, @supplementIng, @supplementAmount,
@supplementDaily )
END
GO
it doesnt give me any error.but its not working.can u help me
to see what is the problem.
thanks