Chce dodać obraz do bazy danych.
Stworzyłem funkcje dodajobraz
<?php function dodajobraz() { <table> <tr> <td>Podaj link do obrazka</td> <td><INPUT type="file" name="obraz"> </tr> <tr> <td><input type="submit" name="dodaj" value="DODAJ OBRAZ"></td> </tr> </table>'; ?>
oraz plik obrazek.php
<?php if($_POST['dodaj']) { ?>
Po nacisnieciu dodaj obraz wyskakuje błąd :
Warning: fread(): supplied argument is not a valid stream resource in C:\xampplite\htdocs\test\obrazek.php on line 29
Warning: fclose(): supplied argument is not a valid stream resource in C:\xampplite\htdocs\test\obrazek.php on line 30