[thelist] mySQL/PHP - INSERT not working

Tom Dell'Aringa pixelmech at yahoo.com
Thu Jun 17 09:18:31 CDT 2004

Little help please, I have this INSERT:

include 'inc/config.php'; // config contains my DB connection
$scout = $_POST['scoutReport'];
$pid   = $_POST['pid'];
mysql_query("INSERT INTO scouting (playerID, report) VALUES ('$pid','$scout')");

I've printed out the values for the POST variables and they are coming over. I can run the insert
successfully in mySQL and it works. But it won't work in my php page - am I forgetting something?
It's been awhile...



http://www.Pixelmech.com/ - read my latest blog posting!

John 3:16

More information about the thelist mailing list