adam291086 Posted February 19, 2009 Share Posted February 19, 2009 ok i am having some trouble as some random tech is being echoed out here is the array Array ( [0] => Array ( [0] => 1 [EnteryID] => 1 [1] => 1 [ComputerID] => 1 [2] => www.bigtits.com [Address] => www.bigtits.com [3] => 1235399556 [Time] => 1235399556 ) [1] => Array ( [0] => 2 [EnteryID] => 2 [1] => 1 [ComputerID] => 1 [2] => fdgfdgdfgdfg [Address] => fdgfdgdfgdfg [3] => 1235399556 [Time] => 1235399556 ) ) here is the code $info = GetIMfromDatabase($StartTimestamp,$EndTimestamp); $CurrentDate = $d."/".$m."/".$y; $count = count($info); if(isset($info)) { echo "Information for the Date" .$d."/".$m."/".$y; for ($i=0; $i<=$count; $i++) { echo "<br />"; echo $info[$i]['ComputerID']; echo "<br />"; echo $info[$i]['From']; echo "<br />"; echo $info[$i]['To']; echo "<br />"; echo date("F j, Y, g:i a",$info[$i]['StartTime']); echo "<br />"; echo date("F j, Y, g:i a",$info[$i]['EndTime']); echo "<br />"; echo $info[$i]['Convosation']; } } else { echo "Information for the Date" .$d."/".$m."/".$y; echo "<br />"; echo "no information for that day"; } ?> and the random text = January 1, 1970, 1:00 am Its print the two dates fromt the array correctly but adding the random text Link to comment https://forums.phpfreaks.com/topic/145999-random-character-printing-out/ Share on other sites More sharing options...
revraz Posted February 19, 2009 Share Posted February 19, 2009 That isn't random, that means your timestamp is empty. Should echo date("F j, Y, g:i a",$info[$i]['StartTime']); be echo date("F j, Y, g:i a",$info[$i]['Time']); ? Link to comment https://forums.phpfreaks.com/topic/145999-random-character-printing-out/#findComment-766490 Share on other sites More sharing options...
adam291086 Posted February 19, 2009 Author Share Posted February 19, 2009 yeah and the loop is going around too much. OOOPPPPPSSS Thanks Link to comment https://forums.phpfreaks.com/topic/145999-random-character-printing-out/#findComment-766492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.