Xtremer360 Posted September 13, 2012 Author Share Posted September 13, 2012 Its not the syntax I am accustomed to using and with all my other syntax makes everything look off. Quote Link to comment https://forums.phpfreaks.com/topic/268334-syntax-error-of-in-the-worng-place/page/2/#findComment-1377699 Share on other sites More sharing options...
PFMaBiSmAd Posted September 13, 2012 Share Posted September 13, 2012 Given that the current syntax you are using is error prone (how long have you been working on this one problem), wouldn't a simplified syntax that works be preferred? Quote Link to comment https://forums.phpfreaks.com/topic/268334-syntax-error-of-in-the-worng-place/page/2/#findComment-1377706 Share on other sites More sharing options...
Xtremer360 Posted September 13, 2012 Author Share Posted September 13, 2012 It just seems more logical to match the 1 line to the 1000 lines of code as opposed to matching 1000 lines of code to 1 line Quote Link to comment https://forums.phpfreaks.com/topic/268334-syntax-error-of-in-the-worng-place/page/2/#findComment-1377709 Share on other sites More sharing options...
PFMaBiSmAd Posted September 13, 2012 Share Posted September 13, 2012 Or you can literally replace each occurrence of - {$this->master_model->users_table} with - ".$this->master_model->users_table." $this->db->select("CONCAT_WS(' ',".$this->master_model->users_table.".first_name, ".$this->master_model->users_table.".last_name) AS author", FALSE); ^^^ Compare this with what you started with. Quote Link to comment https://forums.phpfreaks.com/topic/268334-syntax-error-of-in-the-worng-place/page/2/#findComment-1377712 Share on other sites More sharing options...
Xtremer360 Posted September 13, 2012 Author Share Posted September 13, 2012 Thank you. Very helpful. Quote Link to comment https://forums.phpfreaks.com/topic/268334-syntax-error-of-in-the-worng-place/page/2/#findComment-1377717 Share on other sites More sharing options...
PFMaBiSmAd Posted September 14, 2012 Share Posted September 14, 2012 Ummm. I just checked and final syntax in this thread is exactly what you started with yesterday in a different thread where you were getting a php syntax error due to something else in the file - http://forums.phpfreaks.com/index.php?topic=365112.msg1730837#msg1730837 Quote Link to comment https://forums.phpfreaks.com/topic/268334-syntax-error-of-in-the-worng-place/page/2/#findComment-1377777 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.