coder9 Posted July 25, 2008 Share Posted July 25, 2008 i have this expression below, if(!($jtablegrid_total_rec>=100)) { //add record here. } the expression should do like this, if $jtablegrid_total_rec not equal or greater than 100 it should add a record. is that correct or what is the right expression for this logic? thank you in advance. Quote Link to comment Share on other sites More sharing options...
unidox Posted July 25, 2008 Share Posted July 25, 2008 Or you can just do if less than. Quote Link to comment Share on other sites More sharing options...
coder9 Posted July 25, 2008 Author Share Posted July 25, 2008 just for clarification. it suppose to do like this. if $jtablegrid_total_rec not equal 100 or not greater than 100 it should add a record. Quote Link to comment Share on other sites More sharing options...
coder9 Posted July 25, 2008 Author Share Posted July 25, 2008 any help please? i know this is very easy. just a little tweak and it's gonna be ok. thank you. Quote Link to comment Share on other sites More sharing options...
abhikerl Posted July 25, 2008 Share Posted July 25, 2008 According to what you said. You seem to be confused. I'll explain what you wrote: if $jtablegrid_total_rec not equal or greater than 100 it should add a record means: `````````````````````````````````````````` If ( $jtablegrid !=100 || $jtablegrid<100) { echo "something"; } ````````````````````````````````` Well you can simple write if ($jtablegrid <= 100) { echo ....; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.