[PHP] Re: if then else statement not working

2005-05-05 Thread Jason Barnett
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

[PHP] Re: if then else statement not working

2005-05-05 Thread Matthew Weier O'Phinney
* 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

[PHP] Re: if then else

2005-05-04 Thread David Robley
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

[PHP] Re: if then else

2005-05-04 Thread Jason Barnett
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

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-16 Thread Daniel Schierbeck
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

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-16 Thread Dennis Gearon
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

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-15 Thread Jasper Howard
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

Re: [PHP] Re: If...Or...Else

2004-07-26 Thread Thomas Goyne
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

RE: [PHP] Re: If...Or...Else

2004-07-26 Thread Ford, Mike [LSS]
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

Re: [PHP] Re: If...Or...Else

2004-07-26 Thread rush
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

Re: [PHP] Re: If...Or...Else

2004-07-25 Thread rush
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:

Re: [PHP] Re: If...Or...Else

2004-07-25 Thread Skippy
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

[PHP] Re: If...Or...Else

2004-07-24 Thread Tularis
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;

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Stan F
, 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

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Jason Davidson
. - 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

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Curt Zirzow
* 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

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Jason Davidson
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,

Re: [PHP] Re: if/elseif/else v. switch

2004-06-08 Thread Aidan Lister
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

RE: [PHP] Re: if/elseif/else v. switch

2004-06-07 Thread Chris W. Parker
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

[PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Aidan Lister
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

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Rachel Rodriguez
--- 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

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Aidan Lister
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

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Lester Caine
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

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Curt Zirzow
* 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

RE: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Dennis Seavers
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

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Dennis Seavers
[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

[PHP] Re: Is anybody else getting these??

2003-10-20 Thread Jon Kriek
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

[PHP] Re: Help, anyone else using GD2 php 4.1.2 ?

2002-04-09 Thread Matt Parlane
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]

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Jason G.
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

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Dan McCullough
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)) {

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Papp Gyozo
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

[PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread Brad Melendy
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

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread David Robley
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

RE: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread Jack Dempsey
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

[PHP] Re: Is anyone else seeing this everytime they mail to the list?

2001-09-21 Thread NoWayMan
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;