Showname is in the join, not the fields returned -- a join on episode 4, season 2 in the episode database will return Inca Mummy Girl and Untouched.
D'oh. Sorry about that. Staring me in the face.
I have to repeat my position against hardcoding. The only reason I'm the only one massaging the table is because the code hasn't been written yet.
I only meant that as a quick and dirty fix.
So the next best thing is to just select a COUNT from quotes and make that the randomnumber. Can we put that into the select, or do we have to do two selects, one to get the count and one to get the quote? it's been a while since I've thought about SQL.
We'd have to do two hits.
Is this *really* worth coding? That's my skepticism. I think the quotes are cute, and that's about it.
I don't care about the quotes, or the less-than-truly-random-ness of them, I'm just interested in the tech. I'd really like to know why it's
not
being very random. I certainly didn't see a whole bunch of posts in usenet saying "that damn ORDER BY RANDOM() is broken, everyone knows that", just a few saying it wasn't very efficient.
t I just love eavesdropping in here, listening to all the smart people speaking knowledgeably about stuff of which I understand about one word in ten. I think I'm a geek voyeur
Too add some contrast, I'm so ignorant of SQL that I can't even spell it.
Okay, So does this have any importance? I got it when I hit "read New" while in Natter:
Parse error: parse error, unexpected '[' in /home/buffist/public_html/classes/user.php on line 270
Warning: Cannot send session cache limiter - headers already sent (output started at /home/buffist/public_html/classes/user.php:270) in /home/buffist/public_html/classes/giles.php on line 11
Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition user of the object you are trying to operate on was loaded _before_ the session was started in /home/buffist/public_html/classes/thread.php on line 99
Then I hit refresh and it loaded the page.
You hit in the middle of a file transfer. All is now well.
A bunch of us got the same error, Daniel, but posted about it in Bureaucracy, where it doesn't really belong.
Oh. I'm waaaaay behind in Bureaucracy.
After Michael's first posts in Bureaucracy, I looked at his user profile via the admin option "Maintain users." "Active" was not checked so I figured someone had already deactivated him. But then he posted again a little while later....