Modif function create

This commit is contained in:
Rodolphe Quiedeville 2003-09-14 12:07:30 +00:00
parent 1cc308507d
commit 9f00654377

View File

@ -46,6 +46,18 @@ class Contact
*
*
*/
Function create($user)
{
$sql = "INSERT INTO llx_socpeople (datec, fk_soc,name) ";
$sql .= " VALUES (now(),$this->socid,'$this->nom')";
if ($this->db->query($sql) ) {
$id = $this->db->last_insert_id();
return $id;
}
}
Function fetch($id)
{