Jump to content
MakeWebGames

Recommended Posts

Posted

I need an extra set of eyes: a number see what I'm missing. I been starting at screen to long.

$db->prepare("
       INSERT INTO 
         crimes 
         (
         C_name,
         C_success,
         C_fail,
         C_convictMsg,
         C_victimMsg,
         C_cooldown,
         C_money, 
         C_maxMoney,
         C_level, 
         C_bullets,
         C_maxBullets, 
         C_exp,
         C_playerPerc,
         C_itemType,
         C_itemID,
         C_itemChance,
         C_itemPlayerChance,
         C_itemLoose,
         C_reqItemType
         ) 
         VALUES
         (
         :name,
         :success,
         :fail,
         :convictMsg,
         :victimMsg,
         :cooldown, 
         :money,
         :maxMoney,
         :level,
         :bullets,
         :maxBullets,
         :exp,
         :playerPerc
         :itemType,
         :itemID,
         :itemChance,
         :itemPlayerChance,
         :itemLoose,
         :reqItemType
         );
   ");
   
  if(empty ($this->methodData->itemLoose)){
    $itemLoose = 'y';
  } else {
    $itemLoose = 'n';
  }
  
  if(empty ($this->methodData->reqItemType)){
    $reqItemType = 'y';
  } else {
    $reqItemType = 'n';
  }
  
  
   $insert->bindParam(":name", $this->methodData->name);
   $insert->bindParam(":cooldown", $this->methodData->cooldown);
   $insert->bindParam(":money", $this->methodData->money);
   $insert->bindParam(":maxMoney", $this->methodData->maxMoney);
   $insert->bindParam(":level", $this->methodData->level);
   $insert->bindParam(":bullets", $this->methodData->bullets);
   $insert->bindParam(":maxBullets", $this->methodData->maxBullets);
   $insert->bindParam(":exp", $this->methodData->exp);
  $insert->bindParam(":success", $this->methodData->success);
   $insert->bindParam(":fail", $this->methodData->fail);
   $insert->bindParam(":convictMsg", $this->methodData->convictMsg);
   $insert->bindParam(":victimMsg", $this->methodData->victimMsg); 
   $insert->bindParam(":playerPerc", $this->methodData->playerPerc);
   $insert->bindParam(":itemChance", $this->methodData->itemChance);
   $insert->bindParam(":itemPlayerChance", $this->methodData->itemPlayerChance);
   $insert->bindParam(":itemType", $this->methodData->itemType);
   $insert->bindParam(":itemID", $this->methodData->itemID);
   $insert->bindParam(":itemLoose", $itemLoose);
   $insert->bindParam(":reqItemType", $reqItemType);
   $insert->execute();

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...