<?php $ruta="../imagenes/foto1.jpg"; $sql="insert into tabla_imagenes (ruta) values('$ruta')"; mysql_query($sql);?>