Im noob in php and i have a website which allow users to search for a keyword and give them a result as a link which able to redirect them based on their search.. and i need a script to track how many times a search result's link is clicked. I am using ms access database and odbc connection. please help. thanks
nyler01
0
Light Poster
Recommended Answers
Jump to Postgive them a result as a link which able to redirect them based on their search
assuming your search.php page is doing:
$query = "SELECT linkURL, linkText FROM Resources WHERE linkText LIKE '%{$searchTerm}%'";
(where Resources is your table name) and then generating:
<a href="
All 11 Replies
hielo
65
Veteran Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.