php - how to show record inserted successfully? -


<?php         $id=$_session['id'];         //$date1=date("y-m-d");         //echo $date1;         $work=$_post['postinput0'];             //echo $work;         $project_name=$_post['postinput1'];         $skills=$_post['postinput2'];         $description=$_post['postinput3'];         $file1=$_post['file1'];         $budget=$_post['postinput4'];         //$radio=$_post['radio'];         $sql = "insert job_post                 (u_id,job_category,project_name,job_sub_category,project_description,image,budget)                   values('$id','$work','$project_name','$skills', '$description','$file1','$budget')";             if(mysql_query( $sql, $conn ))             {             echo "successfully";             } else { echo "not inserted"; }         ?> 

show message before submit button. dont want> plz me.

show message after submit button...... error in code

<?php      if(isset($_post['submit']))      {          $id=$_session['id'];          //$date1=date("y-m-d");          //echo $date1;          $work=$_post['postinput0'];          //echo $work;          $project_name=$_post['postinput1'];          $skills=$_post['postinput2'];          $description=$_post['postinput3'];          $file1=$_post['file1'];          $budget=$_post['postinput4'];          //$radio=$_post['radio'];          $sql = "insert job_post (u_id,job_category,project_name,job_sub_category,project_description,image,budget) values('$id','$work','$project_name','$skills', '$description','$file1','$budget')";          $query = mysql_query( $sql, $conn );          if(isset($query))          {              echo "successfully";          }          else          {              echo "not inserted";          }      }  ?>


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -