CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Like condition

Print topic Send  topic

Author Message
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
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.