People i need some help.
How can i do an insert?
Please help.
Here's the source:
First Page:
<cfquery name = "name" datasource = "datasource" dbtype = "dbtype">
SELECT
id,
description
FROM table
WHERE id = 0
ORDER BY description
</cfquery>
<form action = "next_page.cfm" method = "post">
<cfoutput query = "name">
<input type = "checkbox" name = "selected_items" value = "#id#">#description#<br>
</cfoutput>
</form>
Next Page:
<cfquery name = "sm_insert" datasource = "gene" dbtype = "odbc">
INSERT into table (row, id, row)
VALUES ('row', ?, 'row')
</cfquery>
Thanx.
How can i do an insert?
Please help.
Here's the source:
First Page:
<cfquery name = "name" datasource = "datasource" dbtype = "dbtype">
SELECT
id,
description
FROM table
WHERE id = 0
ORDER BY description
</cfquery>
<form action = "next_page.cfm" method = "post">
<cfoutput query = "name">
<input type = "checkbox" name = "selected_items" value = "#id#">#description#<br>
</cfoutput>
</form>
Next Page:
<cfquery name = "sm_insert" datasource = "gene" dbtype = "odbc">
INSERT into table (row, id, row)
VALUES ('row', ?, 'row')
</cfquery>
Thanx.