hello, i hope someone can help me i have a table ip in my database if there is 5 times in it he has to forward it in php to another page.
thanks in advance
The SQL query would be something like:
SELECT COUNT(*) FROM ip WHERE ip_address = 'x.x.x.x'
If it returns 5 or greater, then redirect them.
It's hard to know the exact code to use because you haven't told us if you're using a PHP framework, the library you're using to connect to the database server, etc.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.