Click here to Skip to main content
15,850,265 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Issues with Server.UrlEncode Pin
Nigel K Williams18-Feb-07 13:40
Nigel K Williams18-Feb-07 13:40 
GeneralRe: Issues with Server.UrlEncode Pin
Fred_Smith18-Feb-07 14:02
Fred_Smith18-Feb-07 14:02 
GeneralRe: Issues with Server.UrlEncode Pin
Nigel K Williams18-Feb-07 14:05
Nigel K Williams18-Feb-07 14:05 
GeneralRe: Issues with Server.UrlEncode Pin
manowj18-Feb-07 20:15
manowj18-Feb-07 20:15 
Questiondisable (only) horizontal scroll Pin
spinanicky17-Feb-07 5:50
spinanicky17-Feb-07 5:50 
AnswerRe: disable (only) horizontal scroll Pin
Bradml17-Feb-07 12:31
Bradml17-Feb-07 12:31 
QuestionHow to mirror website? Pin
Fred_Smith17-Feb-07 2:10
Fred_Smith17-Feb-07 2:10 
AnswerRe: How to mirror website? Pin
Bradml17-Feb-07 2:15
Bradml17-Feb-07 2:15 
GeneralRe: How to mirror website? Pin
Fred_Smith17-Feb-07 3:22
Fred_Smith17-Feb-07 3:22 
GeneralRe: How to mirror website? Pin
Bradml17-Feb-07 3:25
Bradml17-Feb-07 3:25 
GeneralRe: How to mirror website? Pin
badgrs18-Feb-07 1:55
badgrs18-Feb-07 1:55 
GeneralRe: How to mirror website? Pin
Bradml18-Feb-07 2:04
Bradml18-Feb-07 2:04 
GeneralRe: How to mirror website? Pin
Fred_Smith18-Feb-07 6:28
Fred_Smith18-Feb-07 6:28 
QuestionProblem in TreeView Pin
Jeeva Mary Varghese17-Feb-07 0:33
Jeeva Mary Varghese17-Feb-07 0:33 
QuestionRegarding Cache Pin
John.L.Ponratnam16-Feb-07 22:01
John.L.Ponratnam16-Feb-07 22:01 
AnswerRe: Regarding Cache Pin
Michael Sync16-Feb-07 23:53
Michael Sync16-Feb-07 23:53 
GeneralRe: Regarding Cache Pin
Bradml17-Feb-07 2:13
Bradml17-Feb-07 2:13 
Questiontime difference in php Pin
hiral_shah16-Feb-07 18:55
hiral_shah16-Feb-07 18:55 
AnswerRe: time difference in php Pin
Bradml16-Feb-07 19:30
Bradml16-Feb-07 19:30 
YES, see Chris, we need a PHP forum!!!

The best way to do that is to create a single number, subtract them and then create the new number. Once you have this use substr to re-create the format,

<?php
$time1 = '13:31:00';
$time2 = '05:25:00';

$time1 = str_replace(':', '', $time1);
$time2 = str_replace(':', '', $time2);

$difference = $time1 - $time2;

$orangised_difference['hours'] = substr(0,1, $diffrence);
$orangised_difference['minutes'] = substr(2,3, $diffrence);
$orangised_difference['seconds'] = substr(4,5, $diffrence);

$final_difference = $orangised_difference['hours']  . ':' . $orangised_difference['minutes'] . ':' . $orangised_difference['seconds'];
?>


(note, this is very rough cut example.)

?>




Brad
Australian

- Captain See Sharp on "Religion"

any half intelligent person can come to the conclusion that pink unicorns do not exist.

GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 20:20
hiral_shah16-Feb-07 20:20 
GeneralRe: time difference in php Pin
Bradml16-Feb-07 20:46
Bradml16-Feb-07 20:46 
GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 21:24
hiral_shah16-Feb-07 21:24 
GeneralRe: time difference in php Pin
Bradml16-Feb-07 21:29
Bradml16-Feb-07 21:29 
GeneralRe: time difference in php Pin
hiral_shah16-Feb-07 21:34
hiral_shah16-Feb-07 21:34 
GeneralRe: time difference in php Pin
Bradml16-Feb-07 21:38
Bradml16-Feb-07 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.