Filter(search) for an IP

Filter(search) for an IP

bloodyukibloodyuki Posts: 3Questions: 0Answers: 0
edited November 2013 in General
The data is taken from the database, server-side processing. the IPs are stored as integers, they are converted to string representation just before outputting them to the table. So when I write 127.0.0.1 in the search field, value is not found, because it is searching in the database.

How do I solve this?

Replies

  • bloodyukibloodyuki Posts: 3Questions: 0Answers: 0
    Any ideas?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds like you need to translate the number into its decimal counterpart where you construct the WHERE condition for the query.

    Allan
  • bloodyukibloodyuki Posts: 3Questions: 0Answers: 0
    I'm using a package for laravel framework, can this be done client side?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    If you are using server-side processing, then filtering is done at the server. It could be done client-side if you were using client-side processing.

    Allan
This discussion has been closed.