How to show report in php dynamic?

Asked By 30 points N/A Posted on -
qa-featured

Hi,

I need your help. I've some reports to show in php dynamic. But I don't know how to show it in php dynamic. Please, show me the process as elaborately as possible.

Thanks

SHARE
Answered By 0 points N/A #165951

How to show report in php dynamic?

qa-featured

Hello

I found simple example for you, it is bare boned so you'll have to design it as you need.

<table border=1 cellpadding=4 cellspacing=0> 
<tr><th colspan=3>Report</th></tr> 
<tr><th>Date</th><th>Item</th><th>Code</th></tr> 
<? 
while($row=mysql_fetch_array($your_mysql_query)) { 
$thisdate=$row["date"]; 
$thisitem=$row["item"]; 
$thiscode=$row["code"]; 
print("<tr><td>$thisdate</td><td>$thisitem</td><td>$thiscode</td></tr>n"); 
} 
?> 
</table>

This is simple example on how to make php report. As you can see it shows you "Date", "Item" and "Code". So you should customize this as you need. I hope this will help you.

Cheers.

Related Questions