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'; ?> Link to comment https://forums.phpfreaks.com/topic/39961-solved-add-time-submitted-and-page-view-to/ 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())"); Link to comment https://forums.phpfreaks.com/topic/39961-solved-add-time-submitted-and-page-view-to/#findComment-193220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.