Re: [REVCMS] Simple little addon, random prize award script for client
Quote:
Originally Posted by
Quackster
It's 2015 and people are still using deprecated MySQL functions in PHP.
It's been 3 fucking years since it the deprecation was announced.
The mysql_query function is used in rev as default, we have people who are new to the community so why confuse them by using other methods, surely keeping in with the basic's of the cms is far better than just adding any old code to the cms
Re: [REVCMS] Simple little addon, random prize award script for client
Quote:
Originally Posted by
Johno
we have people who are new to the community so why confuse them by using other methods,
Teaching new people bad habits is not doing them any favours.
Re: [REVCMS] Simple little addon, random prize award script for client
Quote:
Originally Posted by
Quackster
Teaching new people bad habits is not doing them any favours.
Neither is confusing people by making it harder combining multiple types and methods of code into one system.
Re: [REVCMS] Simple little addon, random prize award script for client
May i suggest using mt_rand() function instead of rand()? mt_rand is expected to be 4x faster than the rand function, as it uses the Mersene Twister algorithm.
Just a heads up, when everybody else is bitching about the use of mysql_query function >_>