zavin Posted July 7, 2008 Share Posted July 7, 2008 I am using PHP and mysql. I am working on table to store info about what page in my site users are clicking on. How would I store the clicked url in the database? Link to comment https://forums.phpfreaks.com/topic/113645-save-url-in-database/ Share on other sites More sharing options...
ratcateme Posted July 7, 2008 Share Posted July 7, 2008 try this $url = $_SERVER['REQUEST_URI']; $query="INSERT INTO `table` (`url`) VALUES ('{$url}');"; mysql_query($query); Scott. Link to comment https://forums.phpfreaks.com/topic/113645-save-url-in-database/#findComment-584001 Share on other sites More sharing options...
zavin Posted July 7, 2008 Author Share Posted July 7, 2008 Perfect thank you. Link to comment https://forums.phpfreaks.com/topic/113645-save-url-in-database/#findComment-584017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.