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 -> ASP

 sql select only return one record

Print topic Send  topic

Author Message
cyrus
Posted: 12/09/2005, 6:54 PM

Hello Gurus,

My problem is this:

I have an option box that will display all the project names from table "Tooling". I have three projects there but when i run the program it only display "one record" or "one project". It also won't display the "-- All Projects --" value of the option box but when i empty the entire table this value will show up! I got stuck with this error and i can't continue. What's wrong with the code?Please help! Any comment(s)/help would be appreciated. Thank You.

Here is the code:

<select name="project_name"><!--BeginLBproject_name--><option value="{ID}" {Selected}>{Value}</option><!--EndLBproject_name--></select>


fldproject_name = GetParam("project_name")SetVar "LBproject_name", ""
SetVar "ID", ""
SetVar "Value", "-- All Projects --"
Parse "LBproject_name", True
openrs rsproject_name, "select tool_id, project_name from tooling"

while not rsproject_name.EOF
SetVar "ID", GetValue(rsproject_name, 1) : SetVar "Value", GetValue(rsproject_name, 1)
if cstr(GetValue(rsproject_name, 1)) = cstr(fldproject_name) then SetVar "Selected", "SELECTED" else SetVar "Selected", ""
Parse "LBproject_name", True
rsproject_name.MoveNext
wend
set rsproject_name = nothing

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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