<html> <?php $a=$_GET['id']; if (!$a) $a=$_POST['id']; if (!$a) else Plik 1: <input type=\"file\" name=\"thefiles[]\"><br><br> Plik 2: <input type=\"file\" name=\"thefiles[]\"><br><br> Plik 3: <input type=\"file\" name=\"thefiles[]\"><br><br> Plik 4: <input type=\"file\" name=\"thefiles[]\"><br><br> <input type=\"submit\" name=\"Submit\" value=\"Wyślij\"> <input type=\"hidden\" name=\"id\" value=\"$a\"> </form>\"; include(\"skrypt/sqlj.php\"); { { $aType = $thefiles_type[$nIndex]; if ( ( $aType == \"image/gif\" ) || ( $aType == \"image/pjpeg\" ) || ( $aType == \"image/jpeg\" ) ) { $aNewName = $aBasePath . \"/foty/$a\" . //daje prefix ID $thefiles_name[$nIndex]; $aNewNames[] = $thefiles_name[$nIndex]; $zapytanie = \"INSERT INTO jpegi values (null,'$aNewName',$a)\"; } else } } } ?> </body> </html>
Chcę dorobić robienie miniaturek w locie. Oraz pomniejszenie pliku jesli jest większy niż 800x600 jak można to zrobić i z jakich funkcji trzeba skorzystać.