Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BNF 0.35 KB | None | 0 0
  1.         $tidString = '';
  2.         if($this->tidValue) {
  3.             $tidString = "WHERE ";
  4.             $tid = explode(".", $this->tidValue);
  5.             for ($counter = 0; $counter <= count($tid)-1; $counter++) {
  6.                 $tidString .= "TID" . ($counter + 2) ." = ". $tid[$counter] . " ";
  7.                 if(($counter)) {
  8.                     echo 'asd';
  9.                     $tidString .= " AND";
  10.                 }
  11.             }
  12.             echo $tidString;
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement