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

 Retrieve Data From MySql database within Html page

Print topic Send  topic

Author Message
aakici


Posts: 49
Posted: 01/18/2005, 12:57 PM

I want to retrieve data from a mysql database when listbox change. When i add event CCS directs me to html part of project. How can i retrieve data within html part of page?
_________________
Regards,
M.Alpaslan AKICI
View profile  Send private message
Nicole

Posts: 586
Posted: 01/19/2005, 5:55 AM

It looks like you added a client side event, that’s why you’re redirected to HTML code. But in your case you need a combination of client side and server side code.
When user changes a Listbox you can reload a page and pass any parameter that indicates that some values need to be retrieved from a database. You can use JS code to reload a page, e.g.
  
window.location.href = "page_name.php?parameter_name=" + this.value ;  

Then create page’s or form’s server side Before Show event where catch parameter_name parameter and retrieve a database value depending on it. You can find a code sample at
http://docs.codecharge.com/studio/html/index.html?http:...BValue.html?toc

_________________
Regards,
Nicole
View profile  Send private message
aakici


Posts: 49
Posted: 01/20/2005, 4:14 PM

Thanks. Your code is very cleaar and helpful
_________________
Regards,
M.Alpaslan AKICI
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.

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.