Script:
<?php
include("admin_config.php");
$update = date('d/m/Y');
$sql_tel = "UPDATE update SET update = '" .$update ."' WHERE id=1 ORDER BY id DESC LIMIT 1 ";
echo ($sql_tel. "<br>");
$sql_tel = mysql_query($sql_tel) or die (mysql_error()); ?>Op de pagina:
UPDATE update SET update = '22/07/2007' WHERE id=1 ORDER BY id DESC LIMIT 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update SET update = '22/07/2007' WHERE id=1 ORDER BY id DESC LIMIT 1' at line 1