Re: [PHP] Re: AND OR NOT

2005-09-06 Thread John Taylor-Johnston
Jasper Bryant-Greene wrote: John Taylor-Johnston wrote: I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get

Re: [PHP] Re: AND OR NOT

2005-09-05 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: David, I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get away with replacin

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
David, I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get away with replacing " AND " with "+", " NOT " w

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
David, I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get away with replacing " AND " with "+", " NOT " w

[PHP] Re: AND OR NOT

2005-09-05 Thread David Robley
John Taylor-Johnston wrote: > Any ideas? Post kind of lost in there since Saturday. Is str_replace the > best choice for case sensitive and for swapping " AND "? > >> >> >> Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in >> $searchenquiry? >> A simple parse for " AND " and

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
Any ideas? Post kind of lost in there since Saturday. Is str_replace the best choice for case sensitive and for swapping " AND "? Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in $searchenquiry? A simple parse for " AND " and then str_replace? Is str_replace appropriate

Re: [PHP] Re: and statement

2004-11-28 Thread Robert Cummings
On Sun, 2004-11-28 at 21:56, Brad Ciszewski wrote: > err i mean ... an 'or' statement sry Two comments: 1. This is the "PHP" General list. See the PHP part... that means it's NOT the MYSQL General list. 2. For such a trivial question you could have spent a whole 5 seconds executing the que

Re: [PHP] Re: and statement

2004-11-28 Thread Larry E . Ullman
err i mean ... an 'or' statement sry is there an 'and' statement for mysql, when you are doing multiple "where"s? MySQL allows SQL statements that support both AND and OR. With OR, you can often use IN instead. SELECT columns FROM tablename WHERE (condition1) AND (condition2)... All of this is

[PHP] Re: and statement

2004-11-28 Thread Brad Ciszewski
err i mean ... an 'or' statement sry www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com "Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is there an 'and' statement for mysql, when you are doing multiple

[PHP] Re: and

2003-03-04 Thread Sunfire
ok put an example in - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 2:09 PM Subject: and This looks like a great example to add to weberdev. would you care to spend 3 minutes and let other PHP developers enj

[PHP] Re: " and ' giving problems

2003-02-11 Thread Michiel van Heusden
you could use stripslashes or stripcslashes to remove the '\'-s, otherwise i wouldn't know.. "Pag" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > When a user wants to add a comment on my site and uses either " or ', and > when it gets printed out, c

[PHP] Re: and validator problem

2002-09-03 Thread Richard Lynch
>I have a tag: >CV > >when I want to validate page (W3C online validator) , validator prints: > >Line 37, column 50: >How can I solve this? (& doesn't functioning, because after that is >&PHPSESSID added automatically by php) PHPSESSID is being added by PHP in order to pass the session data throu

[PHP] Re: and or statement

2002-08-30 Thread Richard Lynch
>What is the "and" "or" statement in php? > >I need this to see if the first statement is whatever, and or the second >statement is whatever... > >if (!isset($PHP_AUTH_USER) "and or" blah($blah)) {} "and" and "or" mean pretty much what they would in English: The expression "x AND y" only returns

[PHP] Re: === and @

2002-06-24 Thread BB
== compares 2 variables regardless of type ("1" == 1) === compares 2 variables with type in mind ("1" !== 1) @ supresses errors in functions "Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What exactly happens when you put three equal-signs t

[PHP] Re: ' and " in sql query

2002-01-04 Thread Philip Hallstrom
addslashes() would work... or use an ereg_replace to do it. Provided that you only use single quotes in your SQL (which is a good idea anyway since other db's only allow you to use single quotes) then you only have a problem with single quotes and not double quotes. On Thu, 3 Jan 2002, Daniel Ha