edpatterson
IS-IT--Management
- Feb 24, 2005
- 186
Oh so close
Apache, PHP and odbc to a remote Access database
(sample data, table = log, columns = ip_adress and user_name)
"192.168.22.1","Jones-Bill"
"192.168.22.2","Jones-Jane"
"192.168.22.1","Jones-Bill"
"192.168.22.2","Jones-Jane"
"192.168.22.1","Jones-Bill"
"192.168.22.2","Jones-Jane"
Works
Does not work
I have tried using '192\.168\.22\.1' to no avail. I do not know how to properly escape the periods. (I think)
Ed
Apache, PHP and odbc to a remote Access database
(sample data, table = log, columns = ip_adress and user_name)
"192.168.22.1","Jones-Bill"
"192.168.22.2","Jones-Jane"
"192.168.22.1","Jones-Bill"
"192.168.22.2","Jones-Jane"
"192.168.22.1","Jones-Bill"
"192.168.22.2","Jones-Jane"
Works
Code:
$sql = "SELECT ip_address, user_name FROM [log] WHERE [user_name] = 'Jones-Bill'";
Code:
$sql = "SELECT ip_address, user_name FROM [log] WHERE [ip_address] = '192.168.22.1'";
I have tried using '192\.168\.22\.1' to no avail. I do not know how to properly escape the periods. (I think)
Ed