<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
function createCookie(value) { //Called on link click
var expires;
var date = new Date();
date.setTime(date.getTime() + 10000);
expires = "; expires=" + date.toGMTString();
document.cookie = 'History' + "=" + escape(value) + expires + "; path=/";
$(document).ready(function() {
$.ajax({
url: 'Query-Logger.php'
});
});
}
</script>
<?php
require 'linkdisplay.php';
echo '<a class="buy" target="_blank" href="' . $ebayla[ $ebayx ] . '" onclick="javascript:createCookie("' . $header . '");" style="text-decoration:none;">' . $header . '</a>';
?>
$user = $_SESSION[ 'loggeduser' ];
$logquery = $_COOKIE[ 'History' ];
/*Submit data to database*/
/*code scrapes website and gets header (I know this works)*/
foreach ($lines as $header) {
return $header;
}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.