Hello.
I am new to SQL and trying to upload images to SQL database using PHP.
When i run the script, the column “image” just upload this random numbers, like this: 0x74657374.
I have set the Data Type to image.
This is the script i have now:
$image = "image.jpg";
$query = "INSERT INTO dbo.userInformation
(image)
VALUES(?)";
$params = array($image);
$result = sqlsrv_query($conn,$query,$params);
sqlsrv_close($conn);