RE: [PHP-DB] preg_math vs preg_match_all

2004-11-24 Thread Russell Johnson
For those perl fans out there, preg_match_all adds the g (global) flag to the expression. So this: preg_match('/foo/', $str, $match); would be like $str =~ /foo/; preg_match_all('/foo/', $str, $match); like $str =~ /foo/g; - Russ p.s. - anyone coming from Perl to PHP can get a little hung

RE: [PHP-DB] Problem with script

2004-11-02 Thread Russell Johnson
Just looking at the error message shows why it's failing in this case: "'t read card','1099413551')' at line 1" One of the fields you're trying to insert is likely 'Can't read card', and since in the query you are surrounding it with single quotes, and it's coughing on the word Can't , which has

RE: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread Russell Johnson
Actually, an easier tool to use is dos2unix, which is available on most Linux boxes. Just type dos2unix [filename], and you should be all set. - Russ Johnson Sabadell Spain -Mensaje original- De: Michael Cortes [mailto:[EMAIL PROTECTED] Enviado el: Thursday, August 19, 2004 1:36 PM Para: