still some bugs and auth issues to iron out. need to implement a new action button/bar, the card for moments in a space, creating new moments and essays, dynamically refreshing the spaces view when a new post is created.
This commit is contained in:
+8
-3
@@ -29,10 +29,15 @@ function exec_stmt($stmt, $param_types, ...$args)
|
||||
$stmt->bind_param($param_types, ...$args);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
if ($result)
|
||||
|
||||
if ($result) {
|
||||
$conn->close();
|
||||
return $result;
|
||||
else
|
||||
return mysqli_insert_id($conn);
|
||||
} else {
|
||||
$id = mysqli_insert_id($conn);
|
||||
$conn->close();
|
||||
return $id;
|
||||
}
|
||||
}
|
||||
|
||||
function get_connection()
|
||||
|
||||
Reference in New Issue
Block a user