Welcome Guest, Not a member yet? Register   Sign In
question on testing result of update(), insert(), and whether my approach works in ensuring unique data
#3

[eluser]Chillahan[/eluser]
Ah I see - I thougth affected_rows() returned an array of the rows or something! Was not apparent in docs that it was a simple counter return. I can see that I could have used that instead.

But do you know if just testing the update() and insert() methods for TRUE is also correct?

The incremental_number is a good idea. The only thing is, the codes have to be set beforehand, because I send the lists out before the product goes for sale (in advance). So unfortunately any real-time manipulation would only work for the on-the-fly generation, not the use of the pre-generated codes.


Messages In This Thread
question on testing result of update(), insert(), and whether my approach works in ensuring unique data - by El Forum - 01-08-2011, 10:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB