Bug #12135 Updated: i faced probelms in simple if conditions
| From: | derick@php.net | Date: | Fri, 13 Jul 2001 08:57:52 +0000 |
| Subject: | Bug #12135 Updated: i faced probelms in simple if conditions | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59942@lists.php.net to get a copy of this message | ||
ID: 12135
Updated by: derick
Reported By: haseebi@hotmail.com
Old Status: Open
Status: Bogus
Bug Type: Variables related
Operating System: win 98
PHP Version: 4.0.6
New Comment:
This is not a PHP bug, ask on the php-general@lists.php.net mailinglist for support questions.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-07-13 04:55:12] haseebi@hotmail.com
// 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 this bug report at http://bugs.php.net/?id=12135&edit=1