On Mar 15, 2005, at 11:24 AM, Richard Lynch wrote:
BAD (probably):
Select blablabla FROM t1,t2,t3
WHERE customers LIKE '%$s%'
OR name LIKE '%$s%'
OR domain LIKE '%$s%'
OR email LIKE '%$s%'
OR log LIKE '%$s%'
AND t1.id = t2.t1_id
AND t1.id = t3.t1_id
GOOD (usually):
Select blablabla FROM t1,t2,t3
WH
BAD (probably):
Select blablabla FROM t1,t2,t3
WHERE customers LIKE '%$s%'
OR name LIKE '%$s%'
OR domain LIKE '%$s%'
OR email LIKE '%$s%'
OR log LIKE '%$s%'
AND t1.id = t2.t1_id
AND t1.id = t3.t1_id
GOOD (usually):
Select blablabla FROM t1,t2,t3
WH
On Mar 14, 2005, at 12:45 PM, Richard Lynch wrote:
Select blablabla FROM t1,t2,t3
WHERE customers LIKE '%$s%'
OR name LIKE '%$s%'
OR domain LIKE '%$s%'
OR email LIKE '%$s%'
OR log LIKE '%$s%'
AND t1.id = t2.t1_id
AND t1.id = t3.t1_id
Horror!
Perhaps I'm missing something, but what's wrong with that
>> Select blablabla FROM t1,t2,t3
>> WHERE customers LIKE '%$s%'
>> OR name LIKE '%$s%'
>> OR domain LIKE '%$s%'
>> OR email LIKE '%$s%'
>> OR log LIKE '%$s%'
>> AND t1.id = t2.t1_id
>> AND t1.id = t3.t1_id
>>
>> Horror!
>>
>
> Perhaps I'm missing something, but what's wrong with that query? It
> l
On Mar 11, 2005, at 3:30 AM, Kim Madsen wrote:
Or better: I put my query in a link like show customers and I´ve
got NO clue about the settings in the mysql db, so this gets "funny"
show customers
show customers
Any application that trusts user input to this extent is in trouble
from the start. W
.just a suggestion!
Regards
/Luis
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 3:14 PM
To: Ross Hulford
Cc: php-general@lists.php.net
Subject: Re: [PHP] incrementing a number from a text file
I want to read a number from an external (txt) fi
Hi,
Friday, March 11, 2005, 6:30:52 PM, you wrote:
KM> -Original Message-
KM> From: Richard Lynch [mailto:[EMAIL PROTECTED]
KM> Sent: Thursday, March 10, 2005 10:14 PM
KM> To: Ross Hulford
KM> Cc: php-general@lists.php.net
KM> Subject: Re: [PHP] incrementing a numbe
, 2005 3:14 PM
> To: Ross Hulford
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] incrementing a number from a text file
>
>> I want to read a number from an external (txt) file and increment
>> it.then save the number back on the text file.
>> I know this is possible but
Luis TQM Ariceaga wrote:
> Is it possible to let the OS handle the collisions?
>
> For example:
>
> $last_value = system('cat counter.txt', $retval);
> $last_value++;
> $result = system('echo $last_value > counter.txt', $retval);
>
> just a suggestion!
>
Luis: if the OS handled the read/write
2005 10:14 PM
To: Ross Hulford
Cc: php-general@lists.php.net
Subject: Re: [PHP] incrementing a number from a text file
>> I want to read a number from an external (txt) file and increment it.then
>> save the number back on the text file.
>> I know this is possible but want a si
rd Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 3:14 PM
To: Ross Hulford
Cc: php-general@lists.php.net
Subject: Re: [PHP] incrementing a number from a text file
> I want to read a number from an external (txt) file and increment
> it.then save the number back on the text fi
At 03:14 PM 3/10/2005, Richard Lynch wrote:
> I want to read a number from an external (txt) file and increment it.then
> save the number back on the text file.
> I know this is possible but want a simple amd economical way to do this.
That's what you *THINK* you want to do :-)
But what happens whe
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 10:14 PM
To: Ross Hulford
Cc: php-general@lists.php.net
Subject: Re: [PHP] incrementing a number from a text file
>> I want to read a number from an external (txt) file and increment i
> I want to read a number from an external (txt) file and increment it.then
> save the number back on the text file.
> I know this is possible but want a simple amd economical way to do this.
That's what you *THINK* you want to do :-)
But what happens when *TWO* users hit that same script at exac
I want to read a number from an external (txt) file and increment it.then
save the number back on the text file.
I know this is possible but want a simple amd economical way to do this.
Thanks,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
15 matches
Mail list logo