Okay...so I have to learn ASP (not .NET) for work...I'm doing it...slowly...It's different, I gotta say. I setup IIS on my local machine and got an access database setup for testing. Have to use Access for work because we don't have SQL Server installed (yet).
Anyway, I'm trying to figure out what the syntax would be for a couple of while loops in a relational database.
I have the following tables setup in my database:
Code:
+------------------------------+
| category |
+------------------------------+
| cat_id category |
+-----------+------------------+
| 1 | PC Software |
+-----------+------------------+
| 2 | Mac Software |
+------------------------------+
+---------------------------------------------+
| software |
+---------------------------------------------+
| id cat_id title notes |
+---------------------------------------------+
| 1 | 1 | Adobe Photosop | notes |
+---------------------------------------------+
| 2 | 1 | Adobe Pagemaker | notes |
+---------------------------------------------+
| 3 | 1 | Quark Xpress | notes |
+---------------------------------------------+
| 4 | 2 | OS X | notes |
+---------------------------------------------+
Now, what I need to figure out is how to display this. I need something like:
Code:
While Category
Print Category Name
While Category ID
Print Software Title
Print Software Notes
End While
End While
Syntax is a little different from what I'm used to, and I haven't quite gotten used to it yet...  I got myself a SAMS book, and got a bunch of new bookmarks, but all I've managed is headaches so far. I'd appreciate any pointers. 
Last edited by techwench; 05-02-2004 at 03:47 AM..
|