|
Another good idea would be to explain what the code does, and what you want it to do - unless there's an obvious syntax error then there's very little chance that we can help without more detail from you.
Personally, I'd probably rewrite your code to use a switch statement on $lang as it would be a bit more readable that way - personal preference though...
I would also suggest that using $_GET['pn'] in that context without validation prior to that may be dangerous, so unless you're already validating to make sure it contains the data you expect it may be a good idea to add that to your code. Difficult to say what validation you should perform without knowing more about the context.
__________________
Layershift :: DDS & Dedicated, UK & USA-based Managed Virtuozzo VPS, Reseller & Shared Hosting
Experienced Parallels Platinum Partners (Plesk since 2001, Virtuozzo since 2004)
|