Advertisement
Guest User

Untitled

a guest
Jun 13th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. foreach ($products as $product) {
  2.     $productlink = "";
  3.    
  4.     foreach ($results as $row) {
  5.         if ($row['id'] == $product['id']) {
  6.             if ($row['fv_page'] == 0) {
  7.                 $productlink = "test1";
  8.             } else {
  9.                 $productlink = "test";
  10.             }
  11.         }
  12.     }
  13.    
  14.     if ($productlink == "") {
  15.         //its not in the db
  16.         $productlink = "test2";
  17.     }
  18.    
  19.     $link1 .= $productlink;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement