Jump to content

[SOLVED] Search a database via LIKE


ballhogjoni

Recommended Posts

I have a database full of ip ranges like 221.134.0.0. I am trying to search the database for this based off the user ip address. My query is simple:

$oDB->Select('ip_tracking','ip','WHERE ip LIKE "%'.$ip.'%"');

 

first param is the table name, second is what I want, third is the where clause.

Link to comment
https://forums.phpfreaks.com/topic/127977-solved-search-a-database-via-like/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.