NEED HELP SETTING REPEAT VALUES!!!

Topics: Developer Forum, Project Management Forum, User Forum
May 6, 2010 at 1:39 AM

Hi,

   I´m trying to store values from a database, there is no problem when the values are difrerents but when values are the same only save one value, the first one.

   The is the code:

$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(0,$fila,$col_orga["company_name"]);
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(1,$fila,"$departamento");
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(2,$fila,"DIPRO");
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(3,$fila,$col_proy["project_name"]);
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(4,$fila,$finicio);
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(5,$fila,$ffin);
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(6,$fila,$tproyecto);
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(7,$fila,$estado_proyecto[$col_proy[project_status]]);
$objDIPRO->getActiveSheet()->setCellValueByColumnAndRow(8,$fila,$completo);

when $col_orga["company_name"] i have two rows with the same value only store one.

I mean, when I open de excel file I only see the first one, and If I change the value of $col_orga["company_name"] with some other different stores the two rows.

how can I store the second one? or what is wrong if I have the rows with the same value?

 

Thank you very much,and I hope someone can help me!

Coordinator
May 6, 2010 at 7:28 AM

I'm afraid I can't understand what you are trying to do. What do you mean by two rows?