Re: php5 not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

You have to close the close brace at last.
like
 <?php
 if (array_key_exits('product_id',$_POST))
   echo "hello there";
 else
   echo "isn't there";
 ?>


--- Jeff Bennett <JBennett@xxxxxxxxxxxxx> wrote:
> You've got an extra open curly brace there.  Or you
> need to close it 
> before the else clause.
> 
> <?php
> if (array_key_exits('product_id',$_POST)
>   echo "hello there";
> else
>   echo "isn't there";
> ?>
> 
> OR
> 
> <?php
> if (array_key_exits('product_id',$_POST){
>   echo "hello there";
> } else {
>   echo "isn't there";
> }
> ?>
> 
> I can't speak for the rest of the code, however.
> 
> -jmb
> 
> Ralph Kessel wrote:
> 
> >I've installed PHP5 with apache 2.0 in windows.
> Apparently string interpolation doesn't seem to be
> working  as per the following example.
> ><?php
> >if (array_key_exits('product_id',$_POST){
> >  echo "hello there";
> >else
> >  echo "isn't there";
> >?>
> >
> >The source displays as <!DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.0 Transitional//EN">
> ><HTML><HEAD>
> ><META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> ><BODY></BODY></HTML>
> >
> >Please help me. 
> >Thanks 
> >Ralph
> >
> >[Non-text portions of this message have been
> removed]
> >
> >
> >
> >
> >
> >PHP Data object relational mapping generator -
> http://www.meta-language.net/ 
> >Yahoo! Groups Links
> >
> >
> >
> > 
> >
> >
> >
> >  
> >
> 


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs




PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux