Guest User

Untitled

a guest
Oct 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <?php require"includes/_connection.php"?>
  2. <?php require_once "includes/_functions.php" ?>
  3.  
  4. <?php require_once "includes/_header.php" ?>
  5. <?php
  6. if(isset($_GET['prim'])) {
  7. $sel_prim=$_GET['prim'];
  8. }
  9. elseif (isset($_GET['sec'])) {
  10. $sel_sec=$_GET['sec'];
  11. }
  12.  
  13.  
  14. ?>
  15. </div>
  16.  
  17. <!--COL TWO-->
  18. <div id="coltwo">
  19. <h2>Based on your search of <?php //word to go here ?> the following companies match that category...</h2>
  20.  
  21. <?php
  22.  
  23. if(isset($_GET['prim'])) {$category_organisations = mysql_query("SELECT * FROM `organisations_primary` WHERE `primarycat_id` = $sel_prim");}
  24.  
  25. elseif (isset($_GET['sec'])) {$category_organisations = mysql_query("SELECT * FROM `oganisations_secondary` WHERE `secondary_id` = $sel_sec");}
  26.  
  27. confirm_query ($category_organisations)
  28.  
  29. ?>
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. </ul>
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. </div>
  55. <?php require ("includes/_footer.php");?>
Add Comment
Please, Sign In to add comment