php - Convert from strtotime into date -


im trying convert timestamp date:

echo '<td>' . strtotime(mysql_result($result,$i,"datum_overboeking")) = date('d-m-y'). '</td>'; 

this gives me error: fatal error: can't use function return value in write context

i want strtotime output input in date ('d-m-y') output given date format.

update:

perfect works, !

but how can find way of correct syntax construction because im struggling how correctly build syntax ?

use second parameter of date function.

date('d-m-y', strtotime(mysql_result($result,$i,"datum_overboeking"))); 

look @ date function

http://www.php.net/manual/en/function.date.php


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -