[REVCMS] Simple little addon, random prize award script for client

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Mr VPS - Cheap VPS Server NOC is offline
    MemberRank
    Sep 2011 Join Date
    Liverpool, UKLocation
    844Posts

    Re: [REVCMS] Simple little addon, random prize award script for client

    Quote Originally Posted by Quackster View Post
    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
    Last edited by Droppy; 26-09-15 at 08:47 PM. Reason: Fixed to make comment more constructive.

  2. #17
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: [REVCMS] Simple little addon, random prize award script for client

    Quote Originally Posted by Johno View Post
    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.

  3. #18
    Mr VPS - Cheap VPS Server NOC is offline
    MemberRank
    Sep 2011 Join Date
    Liverpool, UKLocation
    844Posts

    Re: [REVCMS] Simple little addon, random prize award script for client

    Quote Originally Posted by Quackster View Post
    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.

  4. #19
    Member Badbygger is offline
    MemberRank
    Aug 2007 Join Date
    60Posts

    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 >_>



Page 2 of 2 FirstFirst 12

Advertisement