Hey peeps,
I was just wondering, as I am still doing my blog…why this code doesn’t work:
<?php
if ($_POST['insertsidebar']) //If submit is hit
{
//then connect as user
mysql_connect("localhost","voetsjoe_benji","FUBAR");
mysql_select_db("voetsjoe_benji");
//convert all the posts to variables:
$titlesb = $_POST['titleside'];
$linksb = $_POST['linkside'];
$descsb = $_POST['descside'];
//Insert the values into the correct database with the right fields
mysql_query("INSERT INTO sidebar ('id','link','title','desc') VALUES ('NULL', '$linksb', '$titlesb', '$descsb')";
}
?>
The weird thing is that it works on another page…
Ben