Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6390271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:30:22+00:00 2026-05-25T03:30:22+00:00

Hi. I’ve been trying to create a PHP page using Savant Templating Engine that

  • 0

This is What I tend to see when I try to run it!

Hi. I’ve been trying to create a PHP page using Savant Templating Engine that performs some CRUD operations via XAMPP. As I coded the page and tried to run the page, I found the above errors that showed up. But as I inserted the values into the textbox and textarea respectively and hit the publish button, I found that the database is being updated successfully. What is the probable reason for the above issue? And How do I get out of the problem.
I tried to search for existing threads regarding the same, but none of them seemed to address my problem. Please do help out citing the link below if any of the existing threads addresses my issue. Thanks. 🙂

————————————————————-update————————————————————–

view.html

<html>
    <head>
        <title>Create Post: Blog: Design & Social Media</title>
    </head>
    <body>
        <form action="../../applications/create/index.php" method="POST">
            <input type="text" name="title" value="<?php echo $this->b->title; ?>"/>
            <input type="submit" value="Publish" />
            <br/>
            <textarea rows="2" cols="20" name="content"><?php echo $this->b->content; ?></textarea>
        </form>
    </body>
</html>

index.php

<?php
    include_once ('../../classes/models/blog.php');
    include_once ('../../resources/libraries/savant3.php');
    $s=new savant3();
    $s->method=$_SERVER['REQUEST_METHOD'];
    $b=new blog();
    if($_SERVER['REQUEST_METHOD']=="GET")
    {
    }
    else
    {
        $b->title=$_POST['title'];
        $b->content=$_POST['content'];
        Blog::create($b);
        header('location:../../applications/success/index.php');
        return;
    }
    $s->display('view.html');
?>

Blog.php

<?php
    class Blog
    {
        public $id;
        public $title;
        public $content;
        public $created;

        public static function create(Blog $b)
        {
            $title=$b->title;
            $content=$b->content;
            $m=new mysqli("localhost","root","","kartik_iyer");
            $s=$m->prepare("insert into blog values(null,?,?,null)");
            $s->bind_param('ss', $title, $content);
            $s->execute();
        }

        public static function readSingle($id)
        {
        }

        public static function readAll()
        {
        }

        public static function update(Blog $b)
        {
        }

        public static function delete($id)
        {
        }
    }
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:30:23+00:00Added an answer on May 25, 2026 at 3:30 am

    You are getting this messages because your error reporting is set to -1 = error_reporting(-1); or at least the notices are enabled. This means, that all possible error messages get displayed, especially the notices, that usually are not enabled. I just recently asked about error reporting in this topic.
    Conclusion was, that you should write your code to fit the highest standards, but you shouldn’t fix somebody existing code.

    I would recommend to find the line, that is setting error reporting to -1 remove it. Or override it with: error_reporting(E_ERROR | E_WARNING | E_PARSE);. This will set it as default.

    Or you can optimize your code with empty(), isset() and or presetting some variables to NULL.

    Anyways, read my link on Programmers and you will understand the need-to-know-basis about error reporting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm making a simple page using Google Maps API 3. My first. One marker
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.