mavtech
Posts: 133
|
| Posted: 11/01/2004, 12:50 PM |
|
I am using PHP/Mysql.
I need a before show statement to hide a grid if a field in the grid Ends with a Z.
I tried
if(category_desc LIKE "%Z")
I also tired if(category_desc LIKE '%')
But both failed with parse error.
Any help would be appreciated.
Paul
|
 |
 |
DonB
|
| Posted: 11/02/2004, 9:53 AM |
|
"LIKE" is a SQL keyword, PHP doesn't understand it. What I'm puzzled about
is why you don't query for "NOT LIKE '%Z'" and then it's simply a matter of
hiding the grid if the count of records is zero.
--
DonB
http://www.gotodon.com/ccbth
"mavtech" <mavtech@forum.codecharge> wrote in message
news:54186a19002ff3@news.codecharge.com...
> I am using PHP/Mysql.
>
> I need a before show statement to hide a grid if a field in the grid Ends
with
> a Z.
>
> I tried
> if(category_desc LIKE "%Z")
>
> I also tired if(category_desc LIKE '%')
>
> But both failed with parse error.
>
> Any help would be appreciated.
>
> Paul
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|