Jump to content

LazyJones

Members
  • Posts

    78
  • Joined

  • Last visited

    Never

Posts posted by LazyJones

  1. whole query is pretty much f*cked up, the amount of single quotes is hurting my eyes

     

    I think you are looking something like this (I persume $drugfact is variable, what else could it possibly be)

     

    "UPDATE players SET drugs = drugs + $drugfact*300, dpayout = $drugfact*300"

     

    You don't need single quotes unless you are working with varchars and alike

     

  2. Your statements (opening and closing curly brackets) are a bit messed up:

     

    that code will never enter to checking for 'steakhouse' if the $step == 'add'

     

    btw. using e.g. switch-case statement would be cleaner and you would better avoid errors like such

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.