PHP link only passing part of a mysql result
<p>OK i have a php link which is made up of several variables</p>

<pre><code>&lt;a href=\year.php? manufacturer='.$manufacturer.'&amp;fuel_type='.$fuel_type.'&amp;model_type='.$model_type.'&gt;'.$model_type.'&lt;/a&gt;
</code></pre>

<p>The whole code is really long as it has a lot of pagination, so i will just include the basic query and the loop part.</p>

<pre><code>$query1 = "SELECT Distinct model_type from $tableName where manufacturer='$manufacturer' AND fuel='$fuel_type' LIMIT $start, $limit";
$result = mysql_query($query1);
</code></pre>

<p>And then the bottom part where i get and show the results.</p>

<pre><code> $count = 0;
 $max = 2;
 while($row = mysql_fetch_array($result))
    {
$model_type = $row['model_type'];               
$count++;
echo '&lt;td class="manu"&gt;&lt;div align="center"&gt;'.'&lt;a href=\year.php?    manufacturer='.$manufacturer.'&amp;fuel_type='.$fuel_type.'&amp;model_type='.$model_type.'&gt;'.$model_type.'&lt;/a&gt;'.'&lt;/div&gt;&lt;/td&gt;';

 if($count &gt;= $max){
  //reset counter
   $count = 0;
  //end and restart
  echo '&lt;/tr&gt;&lt;tr&gt;';
  }

  }
</code></pre>

<p>now this works fine except when i take the mode type variable from the database it shows as 1 series, however when it is passed in this link it only gets the 1 and doesn't pick up the series.</p>

<p>Thanks</p>
