PC Nerd Posted June 27, 2008 Share Posted June 27, 2008 hi #$now = time(); $date_str = $ROW['Date']; #$date = date("M/D/Y", $date_Str); echo $date_str."<br>"; #$test = strtotime($ROW['A_Time']." ".date("M", $date_str)." ".date("d", $date_str)." ".date("Y",$date_str)); #$test = echo strtotime($ROW['A_Time']." ".date("M/d/Y", $date_str)); #echo $test."<br>"; ok....so apart form the messiness, and the clear lack of thought behidn this........ $test refuses to be assigned to. as you can see ive tried echoing the output of the function, and still nothing. I knwo that the variables used ($ROW['A_Time'] etc), are 100% there and working..... im displahyignthem rightafter this. can anyoen sugegst why the strtotime() function isnt working? Thanks Link to comment https://forums.phpfreaks.com/topic/112227-no-error-displayed-but-refusing-to-asign-value-ot-variable/ Share on other sites More sharing options...
Guest Posted June 27, 2008 Share Posted June 27, 2008 You're commenting out all of the lines where $test is defined. That's why it's not working. Link to comment https://forums.phpfreaks.com/topic/112227-no-error-displayed-but-refusing-to-asign-value-ot-variable/#findComment-576141 Share on other sites More sharing options...
PC Nerd Posted June 27, 2008 Author Share Posted June 27, 2008 thats jus tmy current working model..... see the echo line doesnt display anything....., and when i have swapped around the #'s, it still doesnt assign... any suggestioins? Thanks Link to comment https://forums.phpfreaks.com/topic/112227-no-error-displayed-but-refusing-to-asign-value-ot-variable/#findComment-576142 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.