You are here: Re: reading contecs of a file « PHP Programming Language « IT news, forums, messages
Re: reading contecs of a file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация