Re: Qoute

2002-05-10 Thread Mark
- Original Message - From: "Paul DuBois" <[EMAIL PROTECTED]> To: "Mark" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 6:09 PM Subject: Re: Qoute > >$group is a newsgroup name; all queries go fine, except one that has

RE: Re: Qoute

2002-05-10 Thread Paul DuBois
At 16:52 + 5/10/02, [EMAIL PROTECTED] wrote: >Well... This seems to be a typical tricky-goute-on-qoute thing... >I recommend you to test your query in mysql client directly >(if you havn't already done that). There really are no tricky quote-on-quote things, except when people try to mess aro

RE: Re: Qoute

2002-05-10 Thread domi
t;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: Qoute > - Original Message - > From: "Jay Blanchard" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 10, 2002 6:01 PM > Subject: RE: Qoute > > > Have you tried

Re: Qoute

2002-05-10 Thread Michael Stassen
Maybe I'm misreading what you did, but $dbh->quote($group) adds the single quotes around the string, so using it followed by "...WHERE newsgroup='$group'" gets you WHERE newsgroup=''name.of.group'' Also, your example sets $newsgroup using quote, but uses $group in the query, which is a problem

Re: Qoute

2002-05-10 Thread Mark
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 6:01 PM Subject: RE: Qoute > Have you tried double-quotes? '"$group"' ? > Jay I do not see how that can be done; when I do

Re: Qoute

2002-05-10 Thread Paul DuBois
At 17:49 +0200 5/10/02, Mark wrote: > > This is too weird; I can quote until I see blew in the face, but I cannot >> seem to make MySQL understand that the name 'group-name' is valid to >> select. It keeps blabbing "You have an error in your SQL syntax". I mean, >> what is the purpose of its o

Re: Qoute

2002-05-10 Thread Mark
- Original Message - From: "Philip Molter" <[EMAIL PROTECTED]> To: "Mark" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 6:01 PM Subject: Re: Qoute > Try: > > $sth = $dbh->prepare( 'SELECT expiration FROM

Re: Qoute

2002-05-10 Thread Philip Molter
On Fri, May 10, 2002 at 05:49:12PM +0200, Mark wrote: : > This is too weird; I can quote until I see blew in the face, but I cannot : > seem to make MySQL understand that the name 'group-name' is valid to : > select. It keeps blabbing "You have an error in your SQL syntax". I mean, : > what is the

RE: Qoute

2002-05-10 Thread Jay Blanchard
[snip] $sth = $dbh -> prepare ("SELECT expiration from newsgroups WHERE newsgroup='$group'"); $sth -> execute; $group is a newsgroup name; all queries go fine, except one that has a dash in it. I have tried quoting $group, like: $newsgroup = $dbh -> quote ($group); $group, btw, where it goes wr

Re: Qoute

2002-05-10 Thread Mark
> This is too weird; I can quote until I see blew in the face, but I cannot > seem to make MySQL understand that the name 'group-name' is valid to > select. It keeps blabbing "You have an error in your SQL syntax". I mean, > what is the purpose of its own quote function if it can not even quote >

Re: Qoute

2002-05-10 Thread Paul DuBois
At 17:26 +0200 5/10/02, Mark wrote: >This is too weird; I can quote until I see blew in the face, but I cannot >seem to make MySQL understand that the name 'group-name' is valid to select. >It keeps blabbing "You have an error in your SQL syntax". I mean, what is >the purpose of its own quote func

RE: Qoute

2002-05-10 Thread Jay Blanchard
[snip] This is too weird; I can quote until I see blew in the face, but I cannot seem to make MySQL understand that the name 'group-name' is valid to select. It keeps blabbing "You have an error in your SQL syntax". I mean, what is the purpose of its own quote function if it can not even quote pro