Hola he hecho el siguiente codigo para modificar un registro de la bd desde php.
$fechasis= datetime;
$querydoc = "UPDATE prueba SET fechasis='" . $fechasis . "' WHERE Id=1";
$resultdoc = mysql_query($querydoc,$prueba);
$row_prueba = mysql_fetch_assoc($resultdoc);
Y me da los siguientes errores:
Warning: mysql_query(): supplied resource is not a valid MySQL-Link resource in C:\AppServ\www\prueba\index.php on line 61
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\prueba\index.php on line 62
Warning: mysql_query(): supplied resource is not a valid MySQL-Link resource in C:\AppServ\www\prueba\index.php on line 61
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\prueba\index.php on line 62