On Thu, Apr 8, 2010 at 10:21 AM, Juan <juan@xxxxxxxxxxxxxxxxxxxxx> wrote: > Hi guys, > I'm having trouble with the following little php code [0]. The output > from the server is : " > * Parse error: syntax error, unexpected '{' in file.php on line 27 * > > Let's assume that file.php is the file that is giving me some troubles. > > The structure is pretty easy to understand, however I'm not able to > solve this. Could you tell me why I'm not able to run this code. > > I'm running PHP5, Apache2, and Ubuntu 9.10 with sqlite, as you could see. > > Its your if's, elseif's, else's. You have "and", change that to &&. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry