function procSubmitEmployee(){
global $session, $form;
$name = $_POST["name"];
$len = strlen($name);
// Only Write To Database If There's A Name
if ($len > 0)
{
$image = $_POST["suburl"];
$bio = $_POST["bio"];
$height = $_POST["height"];
$width = $_POST["width"];
$query = "INSERT INTO profiles (name, bio, imageurl, height, width) VALUES ('$name', '$bio', '$image', '$height', '$width')";
mysql_query($query, @mysql_connect(DB_SERVER, DB_USER, DB_PASS)) or die(mysql_error());
include("header2.inc");
echo("<center><font size='4'><font color='red'>Post has been submitted! Will redirect in 2 seconds</center></font>");
echo("<META HTTP-EQUIV='refresh' CONTENT='2;main.php'>");
//header("location:news.php");
include("footer.inc");
}
}
Heres the error
Unknown column 'bio' in 'field list'
Now here are my fields
name varchar(30) No bio text No imageurl text Yes NULL height int(3) Yes NULL width int(3) Yes NULL


Sign In
Create Account


Back to top









