Jump to content

HAVING TROUBLE COMPARING DATES WITHIN SQL LOOP


keenej

Recommended Posts

What IM trying to accomplish within loop is if date changes to a new date then reset some variables and calculate new totals for the next date.

 

  while (!$rs->EOF) {

 

$tmpDATE=$rs->Fields('ProductionDate');

 

if($tmpDATE==$loopDATE){

 

}else{

echo "TEMP DATE " . $tmpDATE . "<BR>";

$loopDATE=$tmpDATE;

echo "LOOP DATE " . $loopDATE . "<BR>";

}

 

$rs->MoveNext(); }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.