Skip to content
Permalink
Browse files

Create addnews.php

  • Loading branch information...
directman66 committed Jan 27, 2019
1 parent c36452a commit b5c7ffb0be761316eb4f7351d87366ebc19498a5
Showing with 23 additions and 0 deletions.
  1. +23 −0 modules/mercury/lk/addnews.php
@@ -0,0 +1,23 @@
<?
chdir(dirname(__FILE__) . '/../../..');
include_once("./config.php");
include_once("./lib/loader.php");
include_once("./modules/application.class.php");
$link=mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
if(isset($_POST['addnews']))
{
$news = SQLSelect("SELECT * FROM mercury_news");
{
$news['data']=date('Y-m-d H:i:s');;
$news['message']=$this->message;
$news['TITLE']=$this->tema;
SQLInsert('mercury_news', $news);
}
}

0 comments on commit b5c7ffb

Please sign in to comment.
You can’t perform that action at this time.