Anasta wrote:
What am i doing wrong here, the output is always 'empty'
?php
$result = mysql_query(SELECT username FROM users
WHERE seatnum='seat1') or die(mysql_error());
if (seatnum == seat1) {
I think maybe you mean this:
if ($seatnum == 'seat1') {
Heck from the code above you won't even
* Anasta [EMAIL PROTECTED]:
What am i doing wrong here, the output is always 'empty'
?php
$result = mysql_query(SELECT username FROM users
WHERE seatnum='seat1') or die(mysql_error());
if (seatnum == seat1) {
What are you comparing? is seatnum a constant? is seat1 a constant? or
is one
Anasta wrote:
Can anyone help with a statement, ive tried but it never works.
I need to show a value if it is set to a specific value ie:
At the moment If a user is logs in a record is updated from 'away' to
'online'---so i want an echo statement to show a value from another table
if they
Anasta wrote:
Can anyone help with a statement, ive tried but it never works.
I need to show a value if it is set to a specific value ie:
At the moment If a user is logs in a record is updated from 'away' to
'online'---so i want an echo statement to show a value from another table if
they are set
Nick Wilson wrote:
Anyone else getting these infuriating italian messages about some muppet
that doesnt exist?
'desintione non existente'?
I've written to [EMAIL PROTECTED] but no joy, everytime i post on the
php list i get half a dozen of the damn things...
Yup, guess some Italian 1337 h4x0r has
Or better yet, the mail list could be reconfigured to match every other
mail list on the web, so that sender to the list doesn't get these.
Nick Wilson wrote:
Anyone else getting these infuriating italian messages about some muppet
that doesnt exist?
'desintione non existente'?
I've written to
yeah, im pretty sure that's spanish
--
--
Jasper Howard :: Database Administration
ApexEleven Web Design
1.530.559.0107
http://www.ApexEleven.com/
--
Nick Wilson [EMAIL
On Mon, 26 Jul 2004 11:11:21 +0300, Skippy [EMAIL PROTECTED] wrote:
Quoting Thomas Goyne [EMAIL PROTECTED]:
On Sun, 25 Jul 2004 23:15:41 +0300, Skippy [EMAIL PROTECTED] wrote:
Any idea why the need to have two logical operators with the same
meaning BUT
different precedences? I dig the need to
On 25 July 2004 21:16, Skippy wrote:
Any idea why the need to have two logical operators with the
same meaning BUT
different precedences? I dig the need to put in OR as an
alias, but why
confuse people with the precedence issue? One would tend to
think || and OR
are perfectly
Skippy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I just wanted to make things clear, because the way you said it above may
lead to misinterpretations, such as believing that || makes all the
elements
in a condition evaluate even if not necessary, which is not true.
So OR
Jason Davidson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ah right.. :)
Jason
OR has a very low priority , and right argument is not evaluated if left one
is true. In other words OR is here so that you could in pre exception
handling days easily write something like this:
On Sun, 25 Jul 2004 15:42:42 +0200 rush [EMAIL PROTECTED] wrote:
Jason Davidson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ah right.. :)
Jason
OR has a very low priority , and right argument is not evaluated if left
one is true.
Same thing happens with ||, FWIW. The if
if(a OR b) {
do something
} else {
do something else
}
or
if(a || b) {
do something
} else {
do something else
}
is enough :)
Robb Kerr wrote:
From time to time I need an If statement that includes an Or condition...
?php
if ((condition1 == TRUE) OR (condition2 == TRUE)) {
do something;
, 2004 6:57 PM
Subject: [PHP] Re: If...Or...Else
if(a OR b) {
do something
} else {
do something else
}
or
if(a || b) {
do something
} else {
do something else
}
is enough :)
Robb Kerr wrote:
From time to time I need an If statement that includes an Or
condition
.
- Original Message -
From: Tularis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 24, 2004 6:57 PM
Subject: [PHP] Re: If...Or...Else
if(a OR b) {
do something
} else {
do something else
}
or
if(a || b) {
do something
} else {
do
* Thus wrote Jason Davidson:
OR is also bitwise is it not?
No, | is bitwise
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--
PHP General Mailing List (http://www.php.net/)
To
ah right.. :)
Jason
On Sat, 24 Jul 2004 19:50:17 +, Curt Zirzow
[EMAIL PROTECTED] wrote:
* Thus wrote Jason Davidson:
OR is also bitwise is it not?
No, | is bitwise
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No,
PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 2:25 AM
Subject: RE: [PHP] Re: if/elseif/else v. switch
Aidan Lister mailto:[EMAIL PROTECTED]
on Saturday, June 05, 2004 6:19 AM said:
You'll note I did not criticise the poster, merely his seemingly
stupid question.
oh right
Aidan Lister mailto:[EMAIL PROTECTED]
on Saturday, June 05, 2004 6:19 AM said:
You'll note I did not criticise the poster, merely his seemingly
stupid question.
oh right and that makes everything better. you're a fantastic person!
I suggest you practice what you preach. If you have a
This appears to be a really, really stupid question.
If they are indentical in operation, then ofcourse there will be no
noticeable difference to the user.
One may note that a switch statement is faster, because the condition is
only evaluated once. However you did not ask about the speed
--- Aidan Lister [EMAIL PROTECTED] wrote:
This appears to be a really, really stupid question.
Is this level of condemnation of a poster necessary?
Whether you think Dennis's question was stupid or not,
there is no need for such harsh criticism in front of
everyone on this list.
There are
Hi Rachel,
You'll note I did not criticise the poster, merely his seemingly stupid
question.
I suggest you practice what you preach. If you have a comment on my reply to
a users post, feel free to contact me personally - [EMAIL PROTECTED]
There is equally no need to criticise my crticism - on
Now Now children ...
It is always worth remembering that for some posters English is not
their first language and therefore while a question may sound silly,
there may be perfectly good reasons for it being asked.
Always answer the bits that fit between the lines, that is usually the
real
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
This appears to be a really, really stupid question.
Didn't your teachers ever tell you that there is no such thing as
a stupid question?
Curt
--
What... is the Airspeed Velocity of an Unladen Swallow?
--
PHP General Mailing List
an answer. After all, it isn't as though
I ask people to write scripts for me or ask questions just to avoid the
hassle of looking in the manual.
[Original Message]
From: Aidan Lister [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: 06/05/2004 2:04:03 AM
Subject: [PHP] Re: if/elseif/else v
[Original Message]
From: Aidan Lister [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: 06/05/2004 6:19:24 AM
Subject: Re: [PHP] Re: if/elseif/else v. switch
Hi Rachel,
You'll note I did not criticise the poster, merely his seemingly stupid
question.
P.S. Isn't it possible that you
The amount of spam and returned mail in the last few days is horrible.
--
Jon Kriek
http://phpfreaks.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://bugs.php.net/bug.php?id=15568
This bug has been fixed in the latest RC - if you really need this
functionality, you could use RC2 available at www.php.net/~derick or wait
until 4.2.0 is realeased which is due to be on the 22nd of this month.
Matt
Mark W. Humphries [EMAIL PROTECTED]
try this..
?
if(true)
{
?
Raw html code here for
as long as
you want
?
}
else
{
?
More
Raw
Html
Code
Here
?
}
I believe that this feature is way underutilized by php developers. Tying
If someone has already replied to this I apploigize for a double post.
You need to put in brackets after the if statement and end bracket before the else and
then
another open after the else, lastly you need to close with a bracket.
Example:
?php
if (strstr($DomResults,$Match)) {
Nonetheless sometimes it is more efficient to use a template engine.
(IMHO)
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: Jason G. [EMAIL PROTECTED]
To: Brad Melendy [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 1:33 PM
Subject: Re: [PHP
Ok, I figured out that just using echo seems to be the best way to do this
under PHP. In ASP, you can end your code block and start in with HTML, but
I couldn't get that to work with PHP. However, I was able to just use the
echo statement to get the conditional HTML I wanted to show up when the
On Wed, 14 Nov 2001 11:43, Brad Melendy wrote:
Ok, I figured out that just using echo seems to be the best way to do
this under PHP. In ASP, you can end your code block and start in with
HTML, but I couldn't get that to work with PHP. However, I was able to
just use the echo statement to
with a $variable in it.
EOF;
jack
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 8:21 PM
To: Brad Melendy; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Can If Else statements be split into code
blocks??
On Wed, 14 Nov 2001 11:43, Brad Melendy wrote
Hey I got that message in trying to remove my address from a spammer's
list. But I'm not subscribed to the php mailing list.
Every time I send an email to the list, I get a bounce-back. Below are the
details... anyone else see this?
who is [EMAIL PROTECTED]?
Reporting-MTA: dns;
35 matches
Mail list logo