![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/02/2011, 23:31
|
| | Fecha de Ingreso: febrero-2011
Mensajes: 39
Antigüedad: 14 años Puntos: 0 | |
Respuesta: Campo de archivo en php Este, es el codigo de la pagina en la cual hago la asignacion de los valores a la DB:
<?php
$newormodify=$_POST['newormodify'];
$forumcategory=$_POST['forumcategory'];
$forumname=$_POST['forumname'];
$forumtopic=$_POST['forumtopic'];
$forumcomments=$_POST['forumcomments'];
$who_can_post=$_POST['who_can_post'];
$file1=$_POST['file1'];
$file2=$_POST['file2'];
$file3=$_POST['file3'];
$file4=$_POST['file4'];
$file5=$_POST['file5'];
$file6=$_POST['file6'];
$date=date("j/n/y h:i:s");
mysql_query("insert into forumsetup (newormodify,category,forumname,topic,comments,who canpost,file1,file2,file3,file4,file5,file6,date) values('$newormodify','$forumcategory','$forumname ','$forumtopic','$forumcomments','$who_can_post',' $file1','$file2','$file3','$file4','$file5','$file 6','$date'");
include('index.php');
?> |