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
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
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)
}
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
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 ||
!
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
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
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
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
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
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:
"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
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
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
, 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
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
16 matches
Mail list logo