View Single Post
Old 01-02-2011, 08:55 AM  
Sexgenoten
Registered User
 
Industry Role:
Join Date: Dec 2010
Posts: 85
I'd start by seperating your scripting layer from you presentation layer.

Perhaps using a ''switch" could help you as well.

Quote:
$var = 'dog';

switch( $var ){
case 'dog':
echo "woef woef";
break;

case 'cat':
echo "miauw";
break;

default:
echo "no cat or dog found";

}

Last edited by Sexgenoten; 01-02-2011 at 08:57 AM..
Sexgenoten is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote