Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function addValidateLink($name, $url, $description) { |
||
25 | $stmt = \AL\Db\execute_query( |
||
26 | "ValidateLinkDAO: Add link", |
||
27 | $this->mysqli, |
||
28 | "INSERT INTO website_validate ( |
||
29 | website_name, |
||
30 | website_url, |
||
31 | website_date, |
||
32 | website_description, |
||
33 | user_id |
||
34 | ) |
||
35 | VALUES (?, ?, ?, ?, ?)", |
||
36 | "ssiss", $name, $url, time(), $description, $_SESSION['user_id'] |
||
37 | ); |
||
38 | |||
39 | $id = $stmt->insert_id; |
||
40 | |||
41 | $stmt->close(); |
||
42 | |||
43 | return $id; |
||
44 | } |
||
46 |