Re: [PHP] Excluding apostrophe's

2006-12-22 Thread Casey Chu
It should be like this: On 12/22/06, Paul Novitski <[EMAIL PROTECTED]> wrote: >RAFMTD (Ian) wrote: ... >>$name = mysql_real_escape_string ($_POST['name']); ... >>mysql_connect("humbug",$username,$password); ... >>the script fails with the following report Warning: >>mysql_real_escape_string()

Re: [PHP] Excluding apostrophe's

2006-12-22 Thread Paul Novitski
RAFMTD (Ian) wrote: ... $name = mysql_real_escape_string ($_POST['name']); ... mysql_connect("humbug",$username,$password); ... the script fails with the following report Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (

Re: [PHP] Excluding apostrophe's

2006-12-22 Thread Stut
RAFMTD (Ian) wrote: Dear Sir/madam, I have a problem which I don't seem to be able to resolve, so I hope you can. I have a simple html form which 'posts' variables to the following script... --- -- Thi

[PHP] Excluding apostrophe's

2006-12-22 Thread RAFMTD \(Ian\)
Dear Sir/madam, I have a problem which I don't seem to be able to resolve, so I hope you can. I have a simple html form which 'posts' variables to the following script... --- -- This in turn sends the da