Brilliant, Thanks for that bpat1434.....and thanks for the welcome, it looks as though i may become a regular visitor 😃
The current code i'm using, which i think is probably quite basic is:
<?php
// Start Tracker
$q
='insert into tracker (id_user, name_user, page_requested, link_added, date) values
("'.addslashes($_SESSION['kt_login_id']).'", "'.addslashes($_SESSION['kt_login_user']).'", "'.addslashes($_SERVER['PHP_SELF']).'", XXXXXXXXXXX, now())';
mysql_query($q) or print(mysql_error());
// End Tracker
?>
This will obviously try to input the information as soon as the page loads, which is fine for all the other pages i'm using it on. Which of your solutions would fit this best.....obviously the SELECT MAX sounds the likely answer and maybe add 1 so it knows the next entry. Hmmm, this will not be very good for multiple users I'm guessing.
Is there therefore a way to 'easily' adapt this to do an operation like this at the same time/just after the main entry has been entered?....think i'm talking myself into my own solution......maybe not :quiet:
Where the XXXXXXX's are i'd ideally like to add the the value that is going to be posted (which will be $link_url)
If anyone has the time to look i can post more of the code 😃
Thanks,
R