Guest User

Untitled

a guest
Jan 4th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $types = $db->get_results("SELECT name, typeid FROM types WHERE inprod = 1 ORDER BY name ASC");
  2.  
  3. echo '<table border="1"><tr><td>';
  4. if($title != 'Home') { echo '<a href="index.php">Home</a>'; } else { echo 'Home'; } echo '</td>';
  5. foreach($types as $type) {
  6. if($type->name == $title) { echo '<td>' .$type->name. '</td>'; }
Add Comment
Please, Sign In to add comment