[opw-web] Prepared statement fixup
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Prepared statement fixup
- Date: Mon, 10 Mar 2014 04:31:52 +0000 (UTC)
commit c39097ce8ba84616276745eb41d54602b9d1f63b
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sat Mar 8 21:54:50 2014 -0500
Prepared statement fixup
modules/mod_view_projects.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/modules/mod_view_projects.php b/modules/mod_view_projects.php
index 118963a..091a8cf 100644
--- a/modules/mod_view_projects.php
+++ b/modules/mod_view_projects.php
@@ -147,7 +147,8 @@ if ($action == 'editor')
}
else
{
- $params = array('project_id' => $project_id,
+ $params = array('program_id' => $program_id,
+ 'project_id' => $project_id,
'title' => $title,
'description' => $description,
'is_complete' => $is_complete,
@@ -290,7 +291,7 @@ if ($action == 'editor')
// Insert new project
$sql = "INSERT INTO {$db->prefix}projects " .
"(title, description, program_id, is_accepted, is_complete) " .
- "VALUES (':title', ':description', :program_id, :is_accepted, 0)";
+ "VALUES (:title, :description, :program_id, :is_accepted, 0)";
$db->query($sql, $params);
// Get the new project ID
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]