diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-10-30 15:42:29 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-10-30 15:42:29 +0000 |
commit | 7cd9b65e3299fb8bc6a83e65f89fcecca62f3178 (patch) | |
tree | e068090892b16db654a2bf0c2886b65eaf44a14f /comments.php | |
parent | 3730c810f254267ab1fb49f4cad55866e780ad6e (diff) |
- function mysql_query replaced by pwg_query : the same with debugging
features
- by default, DEBUG is set to 0 (off)
git-svn-id: http://piwigo.org/svn/trunk@587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | comments.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/comments.php b/comments.php index e39bb0693..100ac807b 100644 --- a/comments.php +++ b/comments.php @@ -53,7 +53,7 @@ if (isset($_POST['delete']) and count($_POST['comment_id']) > 0) DELETE FROM '.COMMENTS_TABLE.' WHERE id IN ('.implode(',', $_POST['comment_id']).') ;'; - mysql_query($query); + pwg_query($query); } // comments validation if (isset($_POST['validate']) and count($_POST['comment_id']) > 0) @@ -63,7 +63,7 @@ UPDATE '.COMMENTS_TABLE.' SET validated = \'true\' WHERE id IN ('.implode(',', $_POST['comment_id']).') ;'; - mysql_query($query); + pwg_query($query); } // +-----------------------------------------------------------------------+ // | page header and options | @@ -128,7 +128,7 @@ if ($user['status'] != 'admin') $query.= ' ORDER BY ic.image_id DESC ;'; -$result = mysql_query($query); +$result = pwg_query($query); if ($user['status'] == 'admin') { $template->assign_block_vars('validation', array()); @@ -144,7 +144,7 @@ SELECT name,file,storage_category_id as cat_id,tn_ext FROM '.IMAGES_TABLE.' WHERE id = '.$row['image_id'].' ;'; - $subresult = mysql_query($query); + $subresult = pwg_query($query); $subrow = mysql_fetch_array($subresult); if (!isset($array_cat_names[$subrow['cat_id']])) @@ -195,7 +195,7 @@ SELECT * $query.= ' ORDER BY date DESC ;'; - $handleresult = mysql_query($query); + $handleresult = pwg_query($query); while ($subrow = mysql_fetch_array($handleresult)) { $author = $subrow['author']; |