I have written a program that tracks the projects that a developer is working on.
Almost all is working except one snippet of the code.
This is the code that displays projects belonging to a particular developer.
So when you log into the system, you see a screen that says:
"View all projects"
"View Active Projects"
"View My Projects"
"View My projects displays only projects belonging to one particular developer.
On the database, there is a field called "assignedTo".
This field contains names of developers assigned a project.
For instance, assignedTo = 'John Doe'
and a field called section that contains various depts.
eg section = 'IT'
Here is my code:( I am using session variable).
SQL = "SELECT * FROM project WHERE Section = 'IT' AND assignedTo = '" & Session("assignedTo") & "' "
Then at the top of the page, I have a code that reads:
Projects belonging to: <%=Session("assignedTo")%>
The names are not getting displayed and the projects are not getting displayed.
Please tell me what I am doing wrong.
Thanks in advance