I cannot spot a mistake in here, maybe you can???
html form…
[code]
<input type="text" name="title" placeholder="Posting Title" /><br>
<input type="datetime" name="_when" placeholder="Time of Sale" /><br>
<input type="text" name="location" placeholder="Location of Sale" /><br>
<input type="text" name="mainitems" placeholder="Main Items of Sale" /><br>
<input type="submit" value="Post It!"/>
</form>[/code]
connect.php…
[php]$title=$_POST[‘title’];
$location=$_POST[‘location’];
$_when=$_POST[’_when’];
$mainitems=$_POST[‘mainitems’];
mysql_connect($localhost,$username,$password);
mysql_select_db($database) or die( “Unable to select database”);
$sql = “INSERT INTO posting (title,location,_when,mainitems) VALUES
(’$title’,’$location’,’$_when’,’$mainitems’)”;[/php]
MySQL table…
Field Type Null Default
posting_id int(11) No
title varchar(50) No
location varchar(100) No
_when varchar(25) No
mainitems varchar(150) No