Project

General

Profile

« Previous | Next » 

Revision 66

Added by stefan about 19 years ago

Changed column names in mod_news_posts from short,long to content_short, content_long.

View differences:

save_post.php
100 100
}
101 101

  
102 102
// Update row
103
$database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET group_id = '$group_id', title = '$title', link = '$post_link', short = '$short', `long` = '$long', commenting = '$commenting', active = '$active', posted_when = '".mktime()."', posted_by = '".$admin->get_user_id()."' WHERE post_id = '$post_id'");
103
$database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET group_id = '$group_id', title = '$title', link = '$post_link', content_short = '$short', content_long = '$long', commenting = '$commenting', active = '$active', posted_when = '".mktime()."', posted_by = '".$admin->get_user_id()."' WHERE post_id = '$post_id'");
104 104

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

Also available in: Unified diff