$posteddate=$row['room_posteddate'];
$posteddate=date("d-m-Y",$posteddate); <---error points here
echo "<td>". $posteddate ."</td>";
Error msg : A non well formed numeric value encountered in....
I want to format the date from the query result within the html code, can u pls correct and perhaps refine or simplify it in one statement if its possible within the td tags???
Last edited by jacek on Thu Feb 23, 2012 11:16 pm, edited 2 times in total.
Reason:code tags...
bowersbros wrote:GO with Jacek's solution, it will be faster.
I think using UNIX_TIMESTAMP() in that way does the same thing as strtotime(). But MySQL runs on a separate thread and caches the result for a bit. Both of these are interesting points in an argument about performance but honestly it will make very little difference which you go with