count the data

Topics: Developer Forum
Aug 23, 2012 at 10:59 AM

Hello,

I have a question. I hope someone can help me.

$i = 7;
while($row = mysql_fetch_assoc($result)) 
{
       $col = 1;
       foreach($row as $key=>$value)
       {
	$xls->getActiveSheet()>setCellValueByColumnAndRow($col,$i,$value);
	$col++;
			
       }
       $i++;
}

 

How can I count the data and save it in my first Excel column?

Thanks!

Coordinator
Aug 24, 2012 at 6:49 PM

I'm not sure I really understand the question? What data do you want to count?

Aug 27, 2012 at 8:46 AM
Hello,

thank you. I solved the problem.

Bye


From: [email removed]
To: [email removed]
Date: Fri, 24 Aug 2012 10:50:05 -0700
Subject: Re: count the data [PHPExcel:392778]

From: MarkBaker
I'm not sure I really understand the question? What data do you want to count?
Read the full discussion online.
To add a post to this discussion, reply to this email (PHPExcel@discussions.codeplex.com)
To start a new discussion for this project, email PHPExcel@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com