SHARE
TWEET

Why doesnt the function work?

a guest Dec 3rd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function style(){
  2.  
  3.     $name           = $data["tmppercent"] > "1" ? ' style="color: red;"' : '';
  4.     $tmpstyle       = $data["tmppercent"] < "75" ? ' style="color: red;"' : '';
  5.     $pullthrough    = $data["pullthroughpercent"] <= "22" ? ' style="color: red;"' : '';
  6.     $bundlestyle    = $data["bundlepercent"] <= "49.9999" ? ' style="color: red;"' : '';
  7.     $hum            = $data["HUM_Devices"] <= "0" ? ' style="color: red;"' : '';
  8.     $accgp          = $data["accessorygp"] <= "120" ? ' style="color: red;"' : '';
  9.     $tmpstyleStore1      = $data["Textbox106"] <= "75" ? ' style="color: red;"' : '';
  10.     $pullthroughStore1   = $data["Textbox90"] <= "22" ? ' style="color: red;"' : '';
  11.     $bundlestyleStore1   = $data["Textbox74"] <= "50" ? ' style="color: red;"' : '';
  12.     $gp_smartstyleStore1 = $data["gp_smart"] <= "$350" ? ' style="color: red;"' : '';
  13.     $humStore1           = $data["HUM_Devices3"] <= "1" ? ' style="color: red;"' : '';
  14.     $accgpStore1         = $data["Textbox66"] <= "$120" ? ' style="color: red;"' : '';
  15.  
  16.   }
  17.  
  18.  foreach ($result as $data) {
  19.  
  20.       if (strpos($_SERVER['HTTP_HOST'], 'rockland') !== false) {
  21.  
  22.         style();
  23.  
  24.       }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top