in reply to Re: Perl and MySQL - getting a random record
in thread Perl and MySQL - getting a random record

I do have -w turned on.

$imageurl, That is defined when the script first executes, what it does is call a subroutine similiar to get_settings(). $imageurl is url() with the /script stripped off. If the page was called through HTTPS, then it is also calling the images with https. then in the Perl code when I am writing a image tag, I put it as src="$imageurl/path/to/image.gif" like that.

In the databases I put {{imageurl}} then I just switch that with $imageurl.

Anyways. the current version of MySQL installed is 3.23.54
I do have another account on this same server that does use RAND() to get a random id which is the name of the image, without the extension. I do that on that site to show sample products out of our database of over 2000 products. it shows 1 on the home page, and it's different every time the page loads.

In regards to the current site I'm developing, I did clear out my Computers Cache before I reaload it a few times, but it was still record 1. I reloaded the page about 18 to 20 times. Over and over, often clearing the cache first. I also have IE set to check for new pages with every visit.

I'll add the expires to it to see if that helps. Just in case.

Thank you for your advice I really DO appreciate it.

thx,
Richard
  • Comment on Re: Re: Perl and MySQL - getting a random record