From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to