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. 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? 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 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. 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. 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 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
Archived
This topic is now archived and is closed to further replies.