Jump to content

ERROR in update query


alena1347

Recommended Posts

I have a data base that updates the photo

1)

A error occurs everytime i update the database

error:-

Error in Query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\0JFIF\0\0`\0`\0\0ÿÛ\0C\0 ' at line 3

code:-

$sql = "UPDATE freelancer

SET

image=$imgData, name='{$_FILES['image']['name']} WHERE id=$in";

 

 

here $imgData is image with slashes

 

2)

this is the error for

Error in Query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''image-04.jpg WHERE id=29' at line 3

code:-

$sql = "UPDATE freelancer

SET

image='$imgData', name='{$_FILES['image']['name']} WHERE id=$in";

 

please help for the error

Link to comment
https://forums.phpfreaks.com/topic/274144-error-in-update-query/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.