php - strotime not working on different table -


i have code part of table;

echo '<td>' .      $row['datum_overboeking'] = date("m-d-y", strtotime($row["datum_overboeking"])) .      '</td>'; 

i want add same piece of strtotime code piece of code part of table on page;

td>' . mysql_result($result, $i, 'datum_overboeking') . '</td>'; 

so be;

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

but doesnt work, gives error:

fatal error: can't use function return value in write context in /home/davel/www/folder1/pagina_1/view-paginated.php on line 97

mark baker correct, trying set value mysql result - error. if wish display results of 'datum_overboeking' please try following:

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

i assuming $row['datum_overboeking'] , mysql_result($result, $i, 'datum_overboeking') return same kinda string , format.


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? -