Hi all,
I am trying to load an image file through a php upload script to a BLOB in a mySQL database. The blob isnt being inserted its only transfering a NULL string. I have tested it on a Linux and Windows server and it doesnt work. See code below help would be much appreciated.
$filename = $_FILES['file']['tmp_name'];
mysql_query("INSERT INTO entries SET image=LOAD_FILE('$filename'), title='$name', description='$description', cat_id='$cat_id', user_id='$user_id', comp_id='$comp_id', approved=0");
mysql keeps outputting the fact its a null string.
Regards
NeX