Skip to content

Instantly share code, notes, and snippets.

@saharabear
Created May 25, 2013 14:27
Show Gist options
  • Select an option

  • Save saharabear/5649253 to your computer and use it in GitHub Desktop.

Select an option

Save saharabear/5649253 to your computer and use it in GitHub Desktop.
public function add($resume){
$stmt = $this->db->prepare_and_execute(
"insert into resume(givename, avatar, url, address, telephone, birthday,
email, gender, homelocation, isicv4,jobtitle, nationality, worklocation,
worksfor, skills, qq, weibo,github, createdate) values (:givename,
:avatar,:url,:address,:telephone,:birthday,:email,:gender,:homelocation:
:isicv4:,:jobtitle:,:nationality,:worklocation,:worksfor,:skills,:qq,:weibo,
:github,now()) returning id",$resume);
$stmt->execute();
$id = $stmt->fetch();
return $id['id'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment