Inserting the post in

Avatar
  • updated
  • Answered

move_uploaded_file($image_tmp,"../images/$post_image");

$insert_query = "insert into posts

(post_title,post_date,post_atuthor,post_image,post_keyword

s post_content) values('$post_title','$post_date','

$post_author','$post_image','$post_keywords','

$post_content')";

if(mysql_query($insert_query)) {

echo "

Post Published sucessfully!

" ;

}

I coded this and I was expecting that after completing the inserting page posting I will get the message Post Published

sucessfully! in middle but I am not getting what is my mistake or is there any other way to get it through

Avatar
Arn
Hello Shankar, We're sorry to hear that you're having problems with the code for a message stating the successful insertion of a post. Unfortunately, we do not provide coding support for websites. We do try to point you to resources or guides that may help solve your problem. Check out this post on the topic of how to create a notification after saving a record. I hope that helps to guide you to the solution you're seeking. If you have any further questions, please let us know. Regards, Arnel C.