no me funciona..
he probado y siempre me da el mismo fallo:
Cita: Fatal error: Call to undefined function: now() in /home/mindpani/public_html/artistas/upload.php on line 84
Este es el Formulario: Código HTML:
<h1>Introduce correctamente los datos del Artista</h1>
<form enctype="multipart/form-data" action="upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Upload this file: <input name="userfile" type="file">
<table border="0">
<tr>
<td>Nombre Artistico</td>
<td><input type="text" name="artnombre" maxlength="30" size="30"></td>
</tr>
<tr>
<td>Biografia</td>
<td><textarea name="artbio" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Enviar Datos"></td>
</tr>
</table>
</form>
Esta es la parte correspondiente del script Upload.php: Código PHP:
mysql_select_db('xxxxxxxxx');
$query = "insert into artistas values
('".$artnombre."', '".$artbio."', '".$userfile_name."', '".NOW()."')";
$result = mysql_query($query);
if ($result)
echo mysql_affected_rows().' Datos subidos con exito a la base de datos.';
al parecer... no he puesto bien el tema de la inserccion de datos en mysql... ¿como deberia ser?
saludos