0

When i type the text myself and click send it Goes to database but when i copy from anyweb and paste in the Text box so as To send.
The text is Not Going To Database...And suprisingly its Not giving any Error.Help please,i dont know whats wrong.
below is my Code

<?php 
 include"config.php";



$user=$_SESSION['user'];
$userid=$_SESSION['id'];

if(isset($_POST['submit'])){
$status=$_POST['status'];
$heading=$_POST['heading'];
if(!$status or !$heading){

echo"<font color=brown><b>Heading Or the post is Missing</br> Go back to try again</font>";
exit();

}
  include"config.php";
$query = "INSERT INTO post SET post='$status',poster='$user',heading='$heading'" ;
$result=mysql_query($query);
$statusid= mysql_insert_id();
if($result) {
echo"Post published";
}else{

echo"Error occured";

}
?>
2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by FlashCreations
0

If your going to ask a question, please use clear English that we can all understand, and add some more detail. Explain exactly how to reproduce the problem. Then we will be able to help you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.