include"database.inc"; //echo "true"; db_connect(); $place=$_GET['place']; //$sql="select description from tender_info where source='$place' order by mno "; $sql="select description from tender_info where source='$place' order by podate "; $result = mysql_query($sql) or die("Could not generate tender id"); $totalrecords = @mysql_num_rows($result); //echo $totalrecords; $sno=0; if ($totalrecords<=0) { empty_tender(); } else { msg(); } // initialising array ******************** function msg() { global $place; //*******************************SEARCHING ADDRESS FOR SELECTED SOURCE ************** $sql="select address from address where source='$place'"; $result = mysql_query($sql) or die("Could not generate tender id"); $sno=0; while($row=mysql_fetch_array($result)) { //echo $row[0]; $sql="select description,date_format(cpdate,'%d/%m/%y'),t_notice,t_docu,corri1,corri2,corri3,tpath,cpath1,cpath2,cpath3 from tender_info where source='$place' and address ='$row[0]' order by mno "; //echo $sql; $result1 = mysql_query($sql) or die("Could not generate tender id"); $totalrecords = @mysql_num_rows($result1); if($totalrecords>0 && $sno==0) // If tender exist for particular address then search all tenders for that address { $add1=$row[0]; $sno=$sno+1; } } ?>
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TENDERS AND NOTICES |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo $place ?> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|
TENDERS AND NOTICES |
||
|
||