mysql - What's the syntax error in below PHP code? -


my sql query php file follows :

$sql = " insert $this->mtablename(contact_list_name, contact_list_desc, ";           $sql =." contact_list_created_date) value('".clean($form_data['contact_list_name']). "' ";         $sql =." ,'".clean($form_data['contact_list_name'])."', unix_timestamp()) "; 

it's giving me following error:

php parse error:  syntax error, unexpected '.' in contactlist.php on line 60 

i tried change many things didn't work me. can me in resolving syntactical error , building proper query? in advance. 1 more thing instead of values i'm using value preconfigured in system. there no issue word value.

should $sql .= not $sql =.  $sql .=" contact_list_created_date) value('".clean($form_data['contact_list_name']). "' "; $sql .=" ,'".clean($form_data['contact_list_name'])."', unix_timestamp()) "; 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -