[eluser]piyush138[/eluser]
Hi, i am using doctrine (with codeigniter) in the following way to insert the data in the database everything is working fine but i am worried about these things
1. is this the right way to do that?
2. will it effect the server performance(page loadding)?
3. is there any other way to get the same functionality ?
here is the code
foreach($rows as $row){
$crd = new cma_records_data();
$crd->record_id = $cr_record_id;
$crd->user_id = 1;
$crd->address = $row['address'];
$crd->price = $row['price'];
$crd->recordListingID = $i;
$i++;
echo $row['address']." ".$row['price']."<br/>";
$crd->save();
unset($crd);
}
Thanks