Project

General

Profile

« Previous | Next » 

Revision 317

Added by stefan over 18 years ago

Changed all line endings to Unix stlye

View differences:

save_comment.php
1 1
<?php
2 2

  
3 3
// $Id$
4

  
4

  
5 5
/*
6 6

  
7 7
 Website Baker Project <http://www.websitebaker.org/>
......
22 22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 23

  
24 24
*/
25

  
26
require('../../config.php');
27 25

  
26
require('../../config.php');
27

  
28 28
// Get id
29 29
if(!isset($_POST['comment_id']) OR !is_numeric($_POST['comment_id'])) {
30 30
	header("Location: ".ADMIN_URL."/pages/index.php");
......
46 46
	$post_id = $admin->get_post('post_id');
47 47
}
48 48

  
49
// Update row

50
$database->query("UPDATE ".TABLE_PREFIX."mod_news_comments SET title = '$title', comment = '$comment' WHERE comment_id = '$comment_id'");

49
// Update row
50
$database->query("UPDATE ".TABLE_PREFIX."mod_news_comments SET title = '$title', comment = '$comment' WHERE comment_id = '$comment_id'");
51 51

  
52 52
// Check if there is a db error, otherwise say successful
53 53
if($database->is_error()) {

Also available in: Unified diff