Ver original$sql = "INSERT INTO fotos () VALUES ()"; uploadfoto($sql); function uploadfoto($query){ $consulta = mysql_query($query);}