hi all
em new in dis language so not know much.
i have code in wich i get an array and then save it in my database
using this code in my controller.

foreach($file['NewDataSet']['Products'] as $products):
            {
                $tp['text']=$products[1];
                $tp['date']=$products[2];
               $this->model->saveall($tp);
     }endforeach;

bt now i want to match this $file data with the existing records in
database. if it match then update that record else make a new entry..

how can i do this.
actually i dnt know how to compare my $file data with my database
records.

so please help comment anything with which i can complete my code.
give me any example or any method

thanks in advance..

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to