1
include "include/connection.php";
$date= date("Y-m-d H:i:s");
$profile_comment="INSERT INTO `infotown_test`.`profile_comments` (`id`, `user_id`, `name`, `email`, `comments`, `date_and_time`) VALUES (NULL, '".$_REQUEST['user_id']."', '".$_REQUEST['name']."', '".$_REQUEST['email']."', '".$_REQUEST['comment']."', '".$date."')";
mysql_query($profile_comment);
header("location:company-profile.php?id=2");(why it's not working?)
Syed mohamed aladeen
  • 6,507
  • 4
  • 32
  • 59
nitul
  • 9
  • 6

1 Answers1

0

Make the "location" Capital to "Location",

header("Location:company-profile.php?id=2");

Dimag Kharab
  • 4,439
  • 1
  • 24
  • 45