mi problema que tengo es que tengo un formulario y en el formulario tengo un archivo para fotos....
registro_vehiculo.php...
Código PHP:
Ver original
<table align="center" border="1" width="90%" bgcolor="#CCCCCC"> <form method="post" name="formulario" action="insertar.php"> <tr> <td width="105"><strong class="Estilo1">Vehiculo Nuevo</strong></td> <td width="171"> <select name="nuevo">Seleccione Una Opcion... <option value="no">NO</option> <option value="si">SI</option> </select></td> <td width="105"><strong class="Estilo1">Tipo Vehiculo(*)</strong></td> <td width="171"> <?php include ('tipo_vehiculo.php');?></td> </tr> <tr> <td width="105"><strong class="Estilo1">Carroceria(*)</strong></td> <td width="171"><div id="resultado"></div></td> <td width="105"><strong class="Estilo1">Marca(*)</strong></td> <td width="171"> <input type="text" name="marca" /></td> </tr> <tr> <td width="105"><strong class="Estilo1">Modelo(*)</strong></td> <td width="171"> <input type="text" name="modelo" /></td> <td width="105"><strong class="Estilo1">Año(*)</strong></td> <td width="171"> <input type="text" name="ano" size="8" /></td> </tr> <tr> <td width="105"><strong class="Estilo1">Patente(*)</strong></td> <td width="171"> <input type="text" name="patente" size="8" maxlength="6" onBlur="this.value = RvalPat(this.value)"/></td> <td width="105"><strong class="Estilo1">Precio(*)</strong></td> <td width="171"> <input type="text" name="pesos" maxlength="11" onBlur="this.value=retInt(this.value)"/></td> </tr> <tr> <td width="105"><strong class="Estilo1">Otro</strong></td> <td width="171" align="center"><textarea name="otro" rows=4 cols=40 ></TEXTAREA></FONT></td> <td width="105"><strong class="Estilo1">Radio</strong></td> <td width="171" align="center"><input type="checkbox" name="radio" /></td> </tr> <tr> <td width="105"><strong class="Estilo1">Imagen</strong></td> <td width="171"> <input type="file" name="imagen " /></td> <td width="105"><strong class="Estilo1">Alarma</strong></td> <td width="171" align="center"><input type="checkbox" name="alarma"/></td> </tr> <tr> <td></td> <td><input type="submit" value="Enviar" onclick="valida()"></td> </tr> </form> </table>
necesito ingresar los datos del fomulario .... me ingresan los datos ... pero no se como ingresar la imagen a mysql
![triste](http://static.forosdelweb.com/fdwtheme/images/smilies/frown.png)
no se si crear un tabla nueva para la foto o no...
mi base de datos es esta...
Código MySQL:
Ver original
muchas gracias