Picky MySQL
$query="SELECT * FROM table where the first name starts with $letter";
How would you do this?
Want all the entries in database, that all the $name starts with "A",
for example...
Re: Picky MySQL
Andy George wrote:
> $query="SELECT * FROM table where the first name starts with $letter";
>
> How would you do this?
>
> Want all the entries in database, that all the $name starts with "A",
> for example...
"SELECT * FROM table where column_name like 'A%'";
Not case-sensitive.
Mick
Re: Picky MySQL
> "SELECT * FROM table where column_name like 'A%'";
....works a treat, cheers muchly...