well I was thinking about that, but what I have is an albums table with and activeAlbum column in it, which I planned on using. Find the inactive album, get their id's, etc.
so I'm kind of reluctant to add another column to the pictures table then change some things to apply that.
I'm gonna fiddle around using AND instead of && and I'll let you know.
::EDIT::
Worked like a charm. It's so disheartening making those silly mistakes. thanks a bunch for pointing it out 
and for anyone who is curious...the query that worked...
PHP Code:
"SELECT * FROM pictures WHERE AlbumID != '101' AND AlbumID != '102' ORDER BY RAND() LIMIT 1"
Last edited by kbfirebreather; 07-30-2008 at 05:24 PM..
Reason: wasn't necessary for a brand new post.
|