[thelist] Simple IF THEN in PHP

Christian Anderson lists at photokyo.com
Sun Mar 6 10:30:52 CST 2005


Never mind... managed to figure it out myself :)

Christian Anderson  クリスチャン アンダーソン
:: http://www.ckapublishing.com
:: MSN / Webcam : platesonyourass at hotmail.com
 

> -----Original Message-----
> From: thelist-bounces at lists.evolt.org 
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of 
> Christian Anderson
> Sent: Sunday, March 06, 2005 7:31 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] Simple IF THEN in PHP
> 
> Hi Everyone,
>  
> I do all my work in ASP, but now have to add a little bit of 
> flavor to a bit of PHP.
>  
> Basically, I want to do an IF THEN that would work like this in ASP.
>  
> <%
>  
> somecounter = 1
>  
> DO while whatever... <-- the blog is taking care of this stuff -->
>  
> if somecounter = 1 then
> response.write("hello world")
> somecounter = somecounter + 1
> else
> end if
>  
> LOOP <-- again the blog software is taking care of this -->
>  
> %>
>  
> Basically I want to put some code only on the first post of a 
> blog posting.
> So basically on post 1 it will put in the "hello world" 
> thing, and then for any other posts that appear on that page 
> it wont show anything.
>  
> I'm sure its not hard, but I haven't used PHP before so don't 
> know how it works exactly.
>  
> Thanks!
>  
> Christian Anderson  クリスチャン アンダーソン
> ::  <http://www.ckapublishing.com/> http://www.ckapublishing.com
> :: MSN / Webcam :  <mailto:platesonyourass at hotmail.com>
> platesonyourass at hotmail.com
>  
> -- 
> 
> * * Please support the community that supports you.  * * 
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip 
> Harvester and archives of thelist go to: 
> http://lists.evolt.org Workers of the Web, evolt ! 



More information about the thelist mailing list