Portal Home > Knowledgebase > Articles Database > missing php
missing php
Posted by ti_nhatrang, 06-24-2008, 07:21 AM |
Hello all,
not sure what I'm missing here... trying to see if the $leftmins is under the 70% mark of the total minutes used or not, if it is under, then print $call... not sure what i'm missing, please help:
|
Posted by dollar, 06-24-2008, 07:26 AM |
Your actual if check:
Seems to be a bit odd...
Did you mean something like this?
|
Posted by ti_nhatrang, 06-24-2008, 02:56 PM |
tried it, and it didn't work:
if $leftmins < ($tu-tt) { $call = "hahaha"; }
|
Posted by Steve_Arm, 06-24-2008, 03:05 PM |
I think you are missing about 5-7 lines of code.
You fill an array remain[] with values then tu[] and tt[] also.
Then you loop the remain[] array and suddenly use tu and tt which are arrays as variables.
Did you need something like:
|
Posted by ti_nhatrang, 06-25-2008, 01:26 AM |
yes! Thank you so much!
|
Add to Favourites Print this Article
Also Read