Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6817139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:00:44+00:00 2026-05-26T21:00:44+00:00

I need an SQL in PHP for MySQL. Please view the table below: |

  • 0

I need an SQL in PHP for MySQL. Please view the table below:

 | id |       ip       |   time   |
 | -------------------------------|
 | 1    88.207.189.58  1321301482 |
 | 2    76.192.849.84  1321301487 |
 | 3    65.253.192.46  1321301492 |
 | 4    88.207.189.58  1321301522 |
 | 5    12.112.221.22  1321301582 |
 | 6    65.253.192.46  1321301633 |
 | 7    76.192.849.84  1321301657 |
 | 8    76.192.849.84  1321301710 |
 | 9    12.112.221.22  1321301819 |

I need to select the ip’s that are NEW after a particular time

Eg: I want to select rows after time=1321301522 but they should be new, they may not appear before that time. In this case the only valid ip would be 12.112.221.22 (row 5).

This wouldn’t work: SELECT ip FROM table_name WHERE time>1321301522 because it would also list the non-new ones. They may not have appeared before that time.

Thanks in advance!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:00:45+00:00Added an answer on May 26, 2026 at 9:00 pm
    SELECT ip
    FROM myTable
    GROUP BY ip
    HAVING MIN(time) >= 1321301522
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php built website with a mysql database. I need an sql
I need a php code and sql code that will let someone upload an
I need a simple SQL to accomplish the below: Problem: When a petrol bunk
Is there any free script in PHP/MYSQL or in ASP.NET/SQL Server for comment reply
I am working on a PHP/MySQL based ecommerce engine, and need it to be
Need your suggestion on php/mysql software. I develop PHP websites using Dreamweaver, I also
I've been looking at how best to protect against sql injection in PHP/mysql beyond
I am a PHP/MySQL developer, slowly venturing into the realm of C#/SQL Server and
I'm new to ASP.NET and to SQL Server. I'm from the PHP/MySQL world, so
I am facing some problems converting the PHP SQL insertion code below to ASP,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.