Re: MySQL help
| From: | jeremy brand | Date: | Sat, 16 Dec 2000 00:34:09 +0000 |
| Subject: | Re: MySQL help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30626@lists.php.net to get a copy of this message | ||
you can use:
where COMPANY like '$alpho_temp';
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
At least for the people who send me mail about a new language that
they're designing, the general advice is: do it to learn about
how to write a compiler. --Dennis Ritchie
On Fri, 15 Dec 2000, Marc Davenport wrote:
> Date: Fri, 15 Dec 2000 19:29:45 -0500 (EST)
> From: Marc Davenport <md261897@oak.cats.ohiou.edu>
> To: php-general@lists.php.net
> Subject: [PHP] MySQL help
>
> I'm trying to query a mysql database and have it only return values that
> start with a certain letter.
> my current query setup is this
>
> $alpha_temp= $alpha . '*';
> $query="SELECT * FROM $mysql_table_member_list WHERE COMPANY='$alpha_temp'
> ORDER BY COMPANY";
>
> $alpha is just a single character, ie 'a'
> $alpha_temp was an attempt at using wild cards.
>
> Does anyone understand me?
> can anyone help?
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>