Jump to content

voip03

Members
  • Posts

    693
  • Joined

  • Last visited

Posts posted by voip03

  1. function getMyTimeDiff($t1,$t2)
    {
    $a1 = explode(":",$t1);
    $a2 = explode(":",$t2);
    $time1 = (($a1[0]*60*60)+($a1[1]*60)+($a1[2]));
    $time2 = (($a2[0]*60*60)+($a2[1]*60)+($a2[2]));
    $diff = abs($time1-$time2);
    $hours = floor($diff/(60*60));
    $mins = floor(($diff-($hours*60*60))/(60));
    $secs = floor(($diff-(($hours*60*60)+($mins*60))));
    $result = $hours.":".$mins.":".$secs;
    return $result;
    }
    $mytime1 = "10:05:08";
    $mytime2 = "21:22:54";
    echo $cool = getMyTimeDiff($mytime1,$mytime2);
    

    you should get the general idea from it

  2. started by The Little Guy, solved By The Little Guy. Coolness! :)

    worthless post by WebStyles. Coolness! :)

    worthless post by AyKay47, about a worthless post by WebStyles. Coolness! :)

    the chain can go on forever.

     

    If all the posters posted all the time.  It could be an infinite loop!

    Shall we :D

  3. what is the variable value? $r_in

    echo  '<table width="526" border="0"><tr>

          <td width="169">

          <input type="text" name="$r_in" value="'.$lowest_time.'"  style="width:169px" readonly="readonly" class="text_non_color"/></td>

          <td width="169">

          <input type="text" name="$r_out" value="'.$adder.'"  style="width:169px" readonly="readonly" class="text_non_color"/></td>

          </tr></table>';

     

    Why in input tag name attribute empty?

       <input type="text" name="" value="'.$number1.'"  style="width:169px" readonly="readonly" class="text_non_color"/></td>      

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.