topical media & game development

talk show tell print

server-webapi-code-04-admin.php / php



  <?php
  include("./common_db.php");
  if (_POST['name'] != "")
  {
    name = _POST['name']; email = _POST['email']; 
    subject = _POST['subject']; category = _POST['category'];
    post = _POST['post']; date = date('Y-m-d G:i:s');
   
    query = "INSERT INTO 03_simple_blog 
     (`id`, `name`, `email`, `subject`, `category`, `post`, `date`) 
     VALUES (null, 'name', 'email', 'subject', 'category', 'post', 'date')";
        
    id = insertQueryReturnID(query);
     
    
    postURL = "http://example.preinheimer.com/index.php?entry=id";
    messages = "Post added, Post id