Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tidString = '';
- if($this->tidValue) {
- $tidString = "WHERE ";
- $tid = explode(".", $this->tidValue);
- for ($counter = 0; $counter <= count($tid)-1; $counter++) {
- $tidString .= "TID" . ($counter + 2) ." = ". $tid[$counter] . " ";
- if(($counter)) {
- $tidString .= " AND";
- }
- }
- echo $tidString;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement