Re: [PHP] Re: If statement duplicating mysql records?

2007-06-20 Thread Jason Pruim
On Jun 19, 2007, at 5:10 PM, Roberto Mansfield wrote: Jason Pruim wrote: Okay, so I have a question... Probably pretty easy, but why would my if statement show more records then what are in the database? if($row[5] =='Level4'){ // White Highlight }// End of Level 4 else

[PHP] Re: If statement duplicating mysql records?

2007-06-19 Thread Roberto Mansfield
Jason Pruim wrote: > Okay, so I have a question... Probably pretty easy, but why would my if > statement show more records then what are in the database? > > if($row[5] =='Level4'){ // White Highlight > }// End of Level 4 > else > {// Green Highlight > }// End of Un

[PHP] Re: If statement question

2006-06-26 Thread Adam Zey
Alex Major wrote: Hi list. Basically, I'm still learning new things about php and I was wondering if things inside an if statement get 'looked at' by a script if the condition is false. For example, would this mysql query get executed if $number = 0 ? If ($number == 1) { mysql_query($blah) }

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
M. Sokolewicz wrote: Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use I meant to say the following (notice

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use if(!isset($_GET['api'] || strlen($_GET['api']) == 0 || !

Re: [PHP] Re: If statement w/ multiple conditions

2002-11-26 Thread ed
That's what I was looking to acheive. Thanks! Ed On Tue, 26 Nov 2002, Craig wrote: > Something like this will work... > > > if(empty($_GET['1']) && empty($_GET['2']) && empty($_GET['3']) && > empty($_GET['4'])){ > > echo "All vars are EMPTY"; > > }else{ > > echo "Some vars contain

[PHP] Re: If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'll be trying to use a routine that checks 4 seperate variables for > content and need to know the easiest method to do so. The function works > on 2 conditions; either al

[PHP] Re: if statement

2002-07-08 Thread Joseph Szobody
try this: if($type=="test1" || $type=="test2" || $type=="test3"){ Joseph <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Is it possible to do something like this all on one line. > What I need is if any one of these are true then run the script > > if($ty

[PHP] Re: If statement leading to another php page

2002-04-30 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello all, > > How can i force a transfer to another php page from an if statement? > > I have been trying: > > if (condition){ > > echo "Link"; echo 'Link'; the parser will get confused with all the " Alternatively you can escape

[PHP] Re: If Statement with more than one conclusion

2002-01-03 Thread George Nicolae
if (($text=="com")||($text=="net")||($text=="org")||($text=="info")) { } -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can I do an

Re: [PHP] Re: if statement and imageline()

2001-08-30 Thread Hugh Danaher
tely small number which can't be calculated! I did try the error_log statement but my ISP puked on the syntax. - Original Message - From: Richard Lynch <[EMAIL PROTECTED]> To: Hugh Danaher <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 1:21 PM Subject: Re: [PHP] Re:

[PHP] Re: If-statement

2001-08-29 Thread Hugh Bothwell
"Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible to write this shorter: > > if ($Var != "No1" && $Var != "No2" && $Var != "No3") { > code > }; $badValues = array("No1", "No2", "No3"); if (!in_array($Var, $badValues)) { cod

Re: [PHP] Re: if statement and imageline()

2001-08-22 Thread Hugh Danaher
Richard, Thanks for your help. I'll try the error_log() and see what comes out. Hugh - Original Message - From: Richard Lynch <[EMAIL PROTECTED]> To: Hugh Danaher <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 1:21 PM Subject: Re: [PHP] Re: if statement and imageli

Re: [PHP] Re: if statement and imageline()

2001-08-22 Thread Hugh Danaher
st be overburdening the program? I've got a lot of code (about 150 lines) in the .jpg construct. Cheers, Hugh - Original Message - From: Richard Lynch <[EMAIL PROTECTED]> To: Hugh Danaher <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 12:18 AM Subject: Re: [PHP] Re: if s

Re: [PHP] Re: if statement and imageline()

2001-08-21 Thread Hugh Danaher
, and have done some amazing things with it in the last 2 months. With your help and the help of others, I'll certainly make progress. Thanks, Hugh - Original Message - From: Richard Lynch <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 21, 2001 5:16 P

[PHP] Re: if statement and imageline()

2001-08-21 Thread Richard Lynch
What are you getting? An image at all? Broken image? Try getting rid of the header("image/jpeg") or whatever, and see if you have some error message. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.c