stats - $emptype="Other"; } $qu =

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?php include 'tribaldb.php'; session_start(); if($_GET['p']!="admin"){ exit(); } echo "<link rel=stylesheet href=/css/main_gecko.css type=text/css />"; e echo " <Table width=100%> <TR valign=top align=center> <td> <TABLE WIDTH=200 CELLSPACING=0 CELLPADDING=5> <TR> <td>Organization</td> <td>Registered</td> <td>Completed</td> </TR>"; < $x=1; $ While($x<10){ if($x==1){ $emptype="Federal"; }elseif($x==2){ $emptype="Contractor"; }elseif($x==3){ $emptype="State"; }elseif($x==4){ $emptype="Local"; }elseif($x==5){ $emptype="Congressional"; }elseif($x==6){ $emptype="Public"; }elseif($x==7){ $emptype="News"; }elseif($x==8){ $emptype="Tribe"; $ }elseif($x==9){
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: $emptype=&quot;Other&quot;; } $qu = mysql_query(&quot;SELECT * FROM users WHERE govcon='$emptype'&quot;); $ while($s = mysql_fetch_row($qu)){ w $q = mysql_query(&quot;SELECT id FROM users WHERE govcon='$emptype'&quot;); $amount = mysql_num_rows($q); $r = mysql_query(&quot;SELECT id FROM users WHERE govcon='$emptype' AND locked='1'&quot;); $amountdone = mysql_num_rows($r); } echo &quot; &lt;TR&gt; &lt;td&gt;&quot;.$emptype.&quot;&lt;/td&gt; &lt;td&gt;&quot;.$amount.&quot;&lt;/td&gt; &lt;td&gt;&quot;.$amountdone.&quot;&lt;/td&gt; &lt;/TR&gt;&quot;; $x++; $treg+=$amount; $tdone+=$amountdone; } echo &quot; &lt;TR&gt; &lt;td&gt;TOTAL&lt;/td&gt; &lt;td&gt;&quot;.$treg.&quot;&lt;/td&gt; &lt;td&gt;&quot;.$tdone.&quot;&lt;/td&gt; &lt;/TR&gt; &lt;/table&gt;&lt;/td&gt;&quot;; &lt;...
View Full Document

This note was uploaded on 07/28/2009 for the course PHP 1 taught by Professor F during the Spring '09 term at Anne Arundel CC.

Page1 / 2

stats - $emptype=&amp;amp;quot;Other&amp;amp;quot;; } $qu =

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online