My DB developer made me a db with a field in the SQL table as image type. I am trying to take the image someone uploads and just insert it in.
$imagePath = Input::file('image');
$image = $imagePath->getPathName();
$image returns the temp path name
$file = fopen($image, "rb");
$content = fread($file, filesize($image));
fclose($file);
$SqlConn = "INSERT INTO [poll14] ([image]) VALUES ($content)";
But I get this error: An error occurred substituting the named parameters. How am I supposed to be inserting the data in?