Hi all,
I am trying to update (after editing) some displayed records in a form, the file compiles ok, no message error but the update doesn't take place?
String sql1 = "UPDATE provider set company_name='" + company_name + "', contact_name='" + contact_name + "', address='" + address + "', address2='" + address2 + "', city='" + city + "', pcode='" + pcode + "', country='" + country + "', phone='" + phone + "', fax='" + fax + "', email='" + email + "', website='" + website + "', account_no='" + account_no + "', reference='" + reference + "' where provider_id=" + val;
out.print(sql1 + "<br>"
st.executeUpdate(sql1);
<input type="text" size="40" class="text-box" name="company_name" value="<%= company_name %>">
Cheers
Vero
I am trying to update (after editing) some displayed records in a form, the file compiles ok, no message error but the update doesn't take place?
String sql1 = "UPDATE provider set company_name='" + company_name + "', contact_name='" + contact_name + "', address='" + address + "', address2='" + address2 + "', city='" + city + "', pcode='" + pcode + "', country='" + country + "', phone='" + phone + "', fax='" + fax + "', email='" + email + "', website='" + website + "', account_no='" + account_no + "', reference='" + reference + "' where provider_id=" + val;
out.print(sql1 + "<br>"
st.executeUpdate(sql1);
<input type="text" size="40" class="text-box" name="company_name" value="<%= company_name %>">
Cheers
Vero