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)
Here is the error I get
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect , SQL state 07001 in SQLExecDirect in c:\inetpub\wwwroot\cs345s01\step2.php on line 34