Re: [PHP-DB] problem with mysql_query

2002-06-10 Thread Markus Lervik
On Monday 10 Jun 2002 12:14 pm, Rene Schoenmakers wrote: Hi, I've a problem with the following script. Sometimes it does write the data into the database, sometimes it doesn't. When it doesn't $result is completely blank, otherwise it is 1. $sql always returns the propper values even though

RE: [PHP-DB] problem with mysql_query

2002-06-10 Thread Rene Schoenmakers
Schoenmakers Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] problem with mysql_query On Monday 10 Jun 2002 12:14 pm, Rene Schoenmakers wrote: Hi, I've a problem with the following script. Sometimes it does write the data into the database, sometimes it doesn't. When it doesn't $result is completely

Re: [PHP-DB] problem with mysql_query

2002-06-10 Thread Markus Lervik
On Monday 10 Jun 2002 2:15 pm, Rene Schoenmakers wrote: Hi, I know what's causing the problem. In $newsText sometimes single quotes are entered. There the error occurs. How can I escape these singel quotes? with $newsText = addslashes($newsText);

Re: [PHP-DB] problem with mysql_query

2002-06-10 Thread Markus Lervik
On Monday 10 Jun 2002 2:37 pm, Markus Lervik wrote: On Monday 10 Jun 2002 2:15 pm, Rene Schoenmakers wrote: Hi, I know what's causing the problem. In $newsText sometimes single quotes are entered. There the error occurs. How can I escape these singel quotes? with $newsText =

RE: [PHP-DB] problem with mysql_query

2002-06-10 Thread Rene Schoenmakers
It works! Thanks! -Original Message- From: Markus Lervik [mailto:[EMAIL PROTECTED]] Sent: maandag 10 juni 2002 13:37 To: Rene Schoenmakers; [EMAIL PROTECTED] Subject: Re: [PHP-DB] problem with mysql_query On Monday 10 Jun 2002 2:15 pm, Rene Schoenmakers wrote: Hi, I know what's