CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 sql based grid?

Print topic Send  topic

Author Message
Norbert
Posted: 11/07/2004, 1:08 PM

Hi,

I am building search and grid forms, however grid is based on custom sql:

SELECT *
FROM customers
WHERE i_id = {s_i_id}
AND s_name LIKE '%{s_s_name}%'

ID is taken from URL's varialble s_i_id, but as ID is of type INT I HAVE TO specify default value. And here the problem begins, because if the user does not specify customer ID then my sql query will use default value e.g. 0 and this is exactly what I do NOT want to happen, because then my grid is limited to customers that have ID=0 and does not display anything.

Any idea how to solve that problem? I will appreciate any help.

Thank you in advance

Norbert
Norbert
Posted: 11/07/2004, 2:02 PM

:-)
I've posted my question to quickly :-O. After searching the forum I found a few answers:
http://forums.codecharge.com/posts.php?post_id=48740
http://forums.codecharge.com/posts.php?post_id=27344

Brgs
Norbert

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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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