Re: search/select case-insensitivly. - Mailing list pgsql-php

From Roj Niyogi
Subject Re: search/select case-insensitivly.
Date
Msg-id 3DB4D3EB.8070201@pghoster.com
Whole thread Raw
In response to search/select case-insensitivly.  ("Zhidian Du" <duzhidian@hotmail.com>)
List pgsql-php
On the PostgreSQL function side of things, you could do:

SELECT name FROM mytable WHERE Name ILIKE('$Name');

Hope this helps! :)

Cheers,
Roj Niyogi
niyogi@pghoster.com

pgHoster - PostgreSQL Web Hosting
http://www.pghoster.com


Zhidian Du wrote:

> I want a PHP program to search case-insensitivly.
>
> for example:
> select Name from mytable where Name = '$Name';
>
>
> Here $Name is what users' input maybe JOHN, john.  How to let it match
> John in table and find that record?
>
>
> Thanks.
>
> Zhidian Du
>
>
>
>
>
> _________________________________________________________________
> Surf the Web without missing calls! Get MSN Broadband.
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



pgsql-php by date:

Previous
From: "Zhidian Du"
Date:
Subject: search/select case-insensitivly.
Next
From: Andrew McMillan
Date:
Subject: Re: search/select case-insensitivly.