hi all,
i'm trying to uplaod an image to my database using the following:
$data = addslashes(fread(fopen($POST[form_data], "r"), filesize($POST[form_data])));
the above works when i do not have to pass the variable as $_ POST
but its coming up with the following error:
Warning: fread(): supplied argument is not a valid stream resource in /home/thefixon/public_html/admin/script.php on line 7
what am i doing wrong?
Gareth