Hello, I am trying to insert pictures users can upload into a DB, here is my code:
$handleF = fopen("eric3.gif", 'r');
$handleF = fread($handleF, filesize("eric3.gif"));
$handleF = addslashes($handleF);
$query2="Insert into Pics (CDDBNumber, FrontCover) VALUES ($CDDBNumber, '$handleF')";
$result = odbc_do($link, $query2);
What am i missing? (obviousely my connection and link statements are above this)