CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 SQL Where field = session

Print topic Send  topic

Author Message
Ivo
Posted: 05/12/2004, 2:17 AM

Hello,

I want an SQL script Where an database field equals my session. Like this:

$sql = "SELECT quiz_score.user_id, quiz_score.quiz_id
FROM quiz_score
WHERE quiz_score.user_id = ?";

The session is working but I don't know what I have to write down on the ?

Tnx!
peterr


Posts: 5971
Posted: 05/12/2004, 2:22 AM

http://docs.codecharge.com/studio/html/ProgrammingTechn...HEREClause.html

However, you should not need to use any code for this. You can specify your session parameter directly in the Data Source:

(change the Type to "Session")
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

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.