try this:
$dbhost = 'localhost';
$dbuser = 'username';
$dbpass = 'password';
$dbname = 'yourdatabase';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname);
$output ="";
$sql = "insert into TABLENAME values ('".$string.",".$today.",".$b_first.".etc."') ";
mysql_query($sql);
$output .=$sql ."<br>\n";
if(mysql_error()) {
$output .=mysql_error() ."<br>\n";
}
return $output;
Oh, ok, thought it was going to be more involved than that! Will test shortly. Thank you!
Mostly harmless.