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

 Grid result, according to ID number

Print topic Send  topic

Author Message
dlshad

Posts: 5
Posted: 02/16/2011, 4:23 AM

Dear All

I have 2 tables ,
First one is Personal_info
it has ID = Auto increment
and other fields,

Second table is Services
I have also ID= integer and it's not Auto

into the First page I add the Personal info then when submit , Continue to the other page to add Services.

I made Dblookup (Max ID) into the Second page to bring the ID number from Personal_info table.
I have a Grid into Service Page.

but the Grid show the all entry inside the Service Table.

I need only to show the Result of the ID
Which it's Empty now , but when I insert some data it will only show what I added according to the id I have..

any one can help?

Best Regards,
View profile  Send private message
chriscripps

Posts: 30
Posted: 02/18/2011, 12:51 PM

I am not sure I am clear on what you are asking, but it sounds like you are trying to do something similar to this example:
http://examples.codecharge.com/ExamplePack/MultiStepReg...trationGrid.php

The write up is there telling you how to do that.

If I am correct, you can pull up the last insert id of your personal info page. I would do that in the after insert event on the first page instead of on the second page. Then, set a URL parameter with that id number to go to the second page.

In the second page, you need to use the parameter set on the first page in the WHERE statement of your editable grid on the services page.

Hope that helps, Let us know.
Chris
View profile  Send private message
dlshad

Posts: 5
Posted: 04/13/2011, 4:35 AM

thanks for you..

Done
View profile  Send private message

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.

Web Database

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.