All pastes #765600 Raw Edit

Something

public text v1 · immutable
·published 2007-11-08 05:18 UTC
rendered paste body
<?php
if(isset($_POST['bandname']))
{
$bandname = $_POST['bandname']; 
$q = "INSERT INTO bands (temp)  VALUES ('$_POST[bandname]')";
}
if ($bandname == null)
{
	die("<p>please specify a band name</p>");
}
mysql_query($q,$con);
if($_POST[bandname])
{
echo $_POST[bandname] . "&nbsp;added to database";
}
?>