title: php working locally and remotely on own hosting, but not remotely on client's hosting
body: <p>I'm not good with PHP, so please bear with me. I have the following code:</p>
  
  <pre><code>&lt;?php $thisPage="designers";
  include("phpincludes/header.php") ?&gt;
  
  &lt;div id="contentLeft"&gt;
  &lt;?echo "&lt;h2&gt;&lt;a href='designer_display.php?d_name=".$_GET['d_name']."'&gt;" . $_GET['d_name']. "&lt;/a&gt;&lt;/h2&gt;";?&gt;
  
  &lt;?
      error_reporting(0);
      require_once "phpincludes/connection.php";
  
      $designer = $_GET['d_name'];
      // Category Selection Start.
      $cat_qry = "SELECT DISTINCT (
          `own_category`
      )
      FROM  `products` 
      WHERE  `designer` ='".$designer."' &amp;&amp; own_category !=  ''";
          $rs_qry = mysql_query($cat_qry);
  
              $i = 0;
  
          while($rec_qry = mysql_fetch_array($rs_qry))
          {
            if($i==0)
              $first_cat = $rec_qry['cat_name'];
              $cat_name[$i]=$rec_qry['cat_name'];
              $i++;
          }
  
          // Category Selection Start.
          $cat_name = $_GET['catName1'];
          $cat_qry =  "SELECT DISTINCT (
          `own_category`
          )
          FROM  `products` 
              WHERE  `designer` ='".$designer."' &amp;&amp; own_category !=  ''";
  
  
              //"select * from categories";
              $rs_qry = mysql_query($cat_qry);
              $rec_no = mysql_affected_rows();
  
              /*if($_GET["catName1"]=="")
                  $catName = $first_cat;
              else
                  $catName = $cat_name;*/
  
              $n1 = 1;
              echo "&lt;ul id=\"designers\"&gt;";
              while($rec_qry = mysql_fetch_array($rs_qry))
              {
                   $cate_name = str_replace('_',' ',$rec_qry['own_category']);
  
                   //print_r($cate_name[1]);
                   if($rec_qry["own_category"]!= $_GET['catName'])
                      echo "&lt;li&gt;&lt;A HREF='d_items.php?no=".$n1."&amp;d_name=".$designer."&amp;catName=".$rec_qry["own_category"]."'&gt;".strtoupper($cate_name)."&lt;/A&gt;&lt;/li&gt;";
                   else
                      echo "&lt;li&gt;&lt;A HREF='d_items.php?no=".$n1."&amp;d_name=".$designer."&amp;catName=".$rec_qry["own_category"]."'&gt;&lt;font color='#8d9354'&gt;".strtoupper($cate_name)."&lt;/font&gt;&lt;/a&gt;&lt;/li&gt;";
  
                   if($rec_qry["own_category"]== $_GET['catName'])
                   {
                       $query="SELECT A.photo_filename, A.photo_title, B.dc_cat_name FROM displays A
                                  LEFT JOIN displays_categories B ON B.dc_display_photos = A.photo_filename
                                  WHERE dc_cat_name ='".$rec_qry["cat_name"]."'";
                        $query="SELECT B.pro_name, B.own_category, B.own_photo_filename from categories as A LEFT JOIN 
                               products as B ON A.cat_name = B.own_category
                               where cat_name ='".$_GET["catName"]."' and designer ='".$designer."' order by B.pro_name";
                      $rs1_qry = mysql_query($query);        
  
                      echo "&lt;ul class=\"items\"&gt;";
                      while($row = mysql_fetch_array($rs1_qry))
                      {
  
                      if ($designer == "Jardan") {
  
                           $p1name = str_ireplace($designer,'',$row["pro_name"]);
                           $pname = substr($p1name, 0, -3);
  
                      } else {         
  
                           $pname = str_ireplace($designer,'',$row["pro_name"]);
                       }                          
  
                           if($_GET['ProName'] != $row["pro_name"])
                              echo "&lt;li&gt;&lt;A HREF='d_item_details.php?d_name=".$designer."&amp;ProName=".$row['pro_name']."&amp;catName1=".$rec_qry['own_category']."&amp;catName=".$rec_qry['own_category']."'&gt;".$pname."&lt;/A&gt;&lt;/li&gt;";
                           else
                                   echo "&lt;li&gt;&lt;A HREF='d_item_details.php?d_name=".$designer."&amp;ProName=".$row['pro_name']."&amp;catName1=".$rec_qry['own_category']."&amp;catName=".$rec_qry['own_category']."'&gt;&lt;font color='#fff'&gt;".$pname."&lt;/font&gt;&lt;/A&gt;&lt;/li&gt;";                
                      }
                      echo "&lt;/ul&gt;";
                   }
              }
              echo "&lt;/ul&gt;";
  
  
  
          $f=1;
          $recnm = $_GET['ProName'];
          $owncat = $_GET['catName1'];
          $photo_title = $_GET['ptitle'];
          $query2="SELECT pro_code, pro_dimensions, own_photo_filename, designer_pdf, palette FROM products 
              WHERE pro_name ='".$recnm."' and own_category ='".$owncat."'";
          $rt2=mysql_query($query2); 
          echo mysql_error();
  
      ?&gt;
          &lt;/div&gt;
          &lt;div id="contentRight"&gt;
  
          &lt;?
              while($row2 = mysql_fetch_array($rt2))
              {
          ?&gt;          
  
                      &lt;?$d = explode(' ',$designer);
                       for($p=0;$p&lt;count($d);$p++)
                       {
                          $des.=$d[$p];
                       }
  
  
                      if ($designer == "Playstar") {
  
                       $p2name = str_ireplace($designer,'',$recnm);
                       $poname = substr($p2name, 0, -3);
  
                      } else {         
  
                       $poname = str_ireplace($designer,'',$recnm);
                       }                          
  
  
                       ?&gt;
                      &lt;img class="lighting" src="img/designers/&lt;?echo $des."/".$row2['own_photo_filename'];?&gt;.jpg" /&gt;
          &lt;div class="mailerBtn"&gt;&lt;a href="mailto:info@clientsite.com.au?subject=&lt;?echo $recnm;?&gt;"&gt;&lt;h4&gt;ENQUIRE&lt;/h4&gt;&lt;/a&gt;
          &lt;a href="pdf/&lt;?echo $des."/".$row2['designer_pdf'];?&gt;.pdf" target="_blank"&gt;&lt;h4&gt;Download Product PDF&lt;/h4&gt;&lt;/a&gt;&lt;/div&gt;
  
                      &lt;h3&gt;&lt;?echo $poname;?&gt;&lt;/h3&gt;
                      &lt;p&gt;
                          &lt;? 
                                   echo "&lt;b&gt;Product code:&lt;/b&gt;&amp;nbsp;&amp;nbsp;". $row2['pro_code']."&lt;BR&gt;";
                          if ($designer == "Playstar") {
  
                                   echo $row2['pro_dimensions'];
                       } else {        
  
                                   echo "&lt;b&gt;Dimensions:&lt;/b&gt;&amp;nbsp;&amp;nbsp;". $row2['pro_dimensions'];
                       }  ?&gt;
  
                      &lt;/p&gt;
                      &lt;? if($row2[4]=='yes') {
                      ?&gt;
                          &lt;img class="palette" src="img/designers/&lt;?echo $des."/".$row2['own_photo_filename'];?&gt;-palette.jpg" /&gt;
                      &lt;? } ?&gt;
  
          &lt;?}?&gt;
  &lt;?php include("phpincludes/base.php") ?&gt;
  </code></pre>
  
  <p>Much of the code was written by someone else, but I've been modifying it in a couple of ways. It works locally (on XAMP) and on my personal site where I've been hosting it as a test site.</p>
  
  <p>But when i uploaded it to the client's host, this page stops abruptly at <code>echo "&lt;ul class=\"items\"&gt;";</code> - roughly line 73. I can't see what's stopping it from running properly.</p>
  
  <p>Some assistance would be gratefully received!</p>
  
  <p>MTIA.</p>