Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BNF 0.33 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.                     $tidString .= " AND";
  9.                 }
  10.             }
  11.             echo $tidString;
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement