Posted by Colin McKinnon on 01/09/06 00:14
William Young wrote:
> I want to read the contents of a html file into a blob field in my mysql
> database.
>
> The function $par = file_get_contents($p1);
>
<snip>
>
> It doesnt work somehow, but i dont know what the error is.
>
Why don't you know what the error is? You should.
> Can someone please help me out here?
>
To solve the problem you probably need to escape the string before inserting
it. See mysql_real_escape_string() in the manual. While there, read the
chapter on error reporting.
C.
Navigation:
[Reply to this message]
|