draftermath Posted February 24, 2007 Share Posted February 24, 2007 i already have a page that i use to submit articles to. i am looking to log the time it is submitted and also i don't know how i would check page views either. any help would be great, here is what i have now <?php include 'config.php'; include 'opendb.php'; $header = $_POST['header']; $url = $_POST['url']; $description = $_POST['description']; mysql_query("INSERT INTO `articles` (header, url, description) VALUES ('$header', '$url', '$description')"); echo "Success! Your Article has been submitted!"; include 'closedb.php'; ?> Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 24, 2007 Share Posted February 24, 2007 Add a field called submitted, set it to datetime, and do: mysql_query("INSERT INTO `articles` (header, url, description, submitted) VALUES ('$header', '$url', '$description', now())"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.