Hi,
I have code (below) that takes a blog entry and headline and uses INSERT to add it to the MySQL db. It works, but only like 1 time for every 10 times I try it.
Why would it only be working sometimes?
//add entry to db
$current = date("l dS F, Y");
//connect to database "db_name"
$dbcnx = @mysql_connect("localhost", "db_name", "passwd");
mysql_select_db("db_name", $dbcnx);
//insert new record
$adder="INSERT INTO entries VALUES
('0','$header','$entry','$current','$usera')";
// run the SQL query!
$result = mysql_query($adder);
exit;
I would really appreciate any insight into this!
Tom