MySQL Forums
Forum List  »  MyISAM

Re: Query failed:
Posted by: Chis Florinel
Date: September 08, 2005 07:16AM

here is the problem:

INSERT INTO files ('name, size, type, content')
should be

INSERT INTO files (name, size, type, content) (no ' )...

for escaping $content you might want to use mysql_real_escape_string() instead of addslashes() ...

Options: ReplyQuote


Subject
Views
Written By
Posted
9944
September 08, 2005 06:04AM
Re: Query failed:
3346
September 08, 2005 07:16AM
2908
September 09, 2005 06:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.