Bug #12135: i faced probelms in simple if conditions

From: Date: Fri, 13 Jul 2001 08:55:12 +0000
Subject: Bug #12135: i faced probelms in simple if conditions
Groups: php.dev 
Request: Send a blank email to php-dev+get-59941@lists.php.net to get a copy of this message
From: haseebi@hotmail.com Operating system: win 98 PHP version: 4.0.6 PHP Bug Type: Variables related Bug description: i faced probelms in simple if conditions // code that produced the problem. echo $tend //prints 60 echo $total_rec //prints 162 if ($total_rec<$tend) $tend=$total_rec; //when the above conditionis reached i have $total_rec=162 //and $tend=60 but this condition turns out to be true //resulting in all the records being displayed on the // same page.the value of $total_rec is assigned to $tend // fixed code (i am calling this fixing coz its working.) if ($total_rec<=$tend-1) echo $tend=$total_rec; // this condtion works God Help Me. -- Edit bug report at: http://bugs.php.net/?id=12135&edit=1

« previous php.dev (#59941) next »