|Welcome to the Monastery|
Perl and MySQL - getting a random recordby powerhouse (Friar)
|on Feb 05, 2003 at 21:24 UTC||Need Help??|
powerhouse has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I have a table that stores image information in it, such as width, height, link, alt(message), and stuff like that.
I added this subroutine that returns the standard format of html to print that "image". here is what I did:
My problem, is that it keeps grabbing the VERY SAME record. Number 1.
Am I missing something here? I do something similar on another one of my websites, and it works, however it is doing the MySQL clause like this:
That one works.
of course it is ONLY getting the id from it, but shouldn't mine also grab a random record?
I've only added 3, at this point, but it shows that one only, every single time I refresh the page.
Do you see something wrong there?