graham23s Posted January 24, 2010 Share Posted January 24, 2010 Hi Guys, I'm having trouble with a bit of syntax: if ((!empty($_POST['twitUser']) && !empty($_POST['twitPass'])) Is the proper way to put () around both !empty fields or () around the whole code? thanks guys Graham Quote Link to comment https://forums.phpfreaks.com/topic/189616-syntax-error/ Share on other sites More sharing options...
wildteen88 Posted January 24, 2010 Share Posted January 24, 2010 You have an extra ( at the start of your statement if ((!empty($_POST['twitUser']) && !empty($_POST['twitPass'])) Quote Link to comment https://forums.phpfreaks.com/topic/189616-syntax-error/#findComment-1000772 Share on other sites More sharing options...
graham23s Posted January 24, 2010 Author Share Posted January 24, 2010 ah thanks mate. Graham Quote Link to comment https://forums.phpfreaks.com/topic/189616-syntax-error/#findComment-1000774 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.