View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Function for displaying data from seperate tables in same database.

Thread began 1/04/2010 7:22 am by ijk76319396 | Last modified 1/11/2010 6:44 pm by ijk76319396 | 936 views | 6 replies


PLEASE DISREGARD MY LAST POST: I am trying to do it through a new method but I still can't get my results. Alright instead of trying to pull the date from a different field I have added an insert record behavior to when the user uploads his page so it enters the date into the subscribe table, it works fine, and is entered into the database, BUT, I am still having trouble getting that date to be the one that shows up next to the last uploaded page.

My database is structured as follows:
ID=Key Column
subscribe2=(the username of the one being subscribed to)
subscriber= (the username of the one subscribing)
date=(a timestamp)
SUBID=( a unique numerical ID associated with each user)

Now when someone (user1)subscribes to a user (user2) the following would be entered into the database
SUBID=6(user2's unique numerical no.)

Now when user2 uploads a new page the following is entered into the same database
SUBID=6(user2's unique numerical no.)

so if the two above were consecutive rows it would look like this

1 - user2 - user1 - 1/3/2010 - 6
2 - NA - NA - 1/4/2010 - 6

My RSquery looks like this

("SELECT * FROM subscribe WHERE subscriber = %s ORDER BY `date` DESC"

This gives me the results as far as the users name being subscribed to, but with the date in row 1.
How can I get the users name being subscribed to BUT with the date from row two. Being that the SUBID field would be identical I thought I could group them together somehow but I'm not sure as to the method. Thanks!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...