![]() |
Quote:
But I am learning my friend, jsut at a slow pace (lots of other stuff going on in life) I shall amaze you one day:) |
It looks like the Order by RAND() function is not available for mysql versions 3.22 or lower. Any way of getting the sql rewritten to work with 3.22? :)
Thanks Chris |
What version is your MySQL? I know that the ability to order by RAND() was only added in a certain version... I'll dig up see if I can find the older way to get a random row. :)
|
I'm running 3.22.32. I looked and the order by rand() does only seem to be available to 3.23 and up.
I am trying to talk myself into upgrading the mysql version, but I'm chicken. |
Ok my book tells me you should change the query to this:
PHP Code:
|
Works like a champ. Thanks.
Chris |
firefly?
|
Right, sorry. :)
Just change first line of code to this: Code:
$thisdate=date('W'); |
thanks gonna try this 1 out :)
|
How do you run a query? I am new at this, you lost me hehe
|
All times are GMT. The time now is 07:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|