this is working on my main site, so while i was working with putting images in, it decided not to work. as you will see, the errors produces are phatoms, yet it halts execution. All I am doing is extracting the MONTH regardless of comments, its is not the topic of this issue. watch: (it could be any array - remember its working live)
$date = “2011-06-06 15:22:30”
$date = explode(" “,$date); //splits time and date
echo $date[0].”
"; // prints 2011-06-06
$date = explode("-",trim($date[0])); //split ymd
echo $date[1]."
"; // prints 06 *** no error here
echo "num: ".$date[1]; // prints 06 AND Undefined offset: 1 in…
$num = $date[1]; // now this doesnt work??!!??
question: how can *** echo "num: ".$date[1]; *** yeild a correct result AND have an undefined offset at the same time?
here is the puzzler. this exact code is working live perfect. I was adding images on a completely different page. the code above is 150% non related to the work I am doing, it just is not working. the above should NOT give an error.