Sunday, June 1, 2014

(how to prevent duplicate or same csv file upload into database in cake php?)Upload csv file to mssql server using cake php

hi everyone, i was trying to search for the code on how to prevent the duplicate data upload into my database system.

one of the method is to set unique key for my data - time, that means everytime the data come in will search for different time, if detected same time it will unable the data upload.

but i'm not sure how to start, i'm new to cake php.

hope someone will guide me, thank you.

is it need to set validate to model.php? and how to set the action on the controller for retrieve unique key for upload data?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: