Not quite there
Hi dani,
I get what you are doing here, however, it would appear backto front to me.
I need to display "Not a valid Supplier number" and only insert a record if the supplier number entered is valid.
I would have expected this
For form element
<?php if ($totalRows_rs_suppliers == 0) { // Show if recordset empty ?>
Not a valid Supplier Number
<?php } // Show if recordset empty ?>
On Insert
if ($totalRows_rs_suppliers > 0) { // Insert if recordset not empty
// WA Application Builder Insert
Either way it is not working for me. I have attched code if you wish to have a look.
Note : I am looking up 'suppliers' (sslsuppliers)for validation and inserting into 'product labels' (ssllabel )
Thanks