I have moved my site from one server to another and since the move I am getting issues with drop down populated from MySQL database.
   <tr><td>IPad:</td>
  <?
  $sql="SELECT * FROM ipad_list order by asset asc";
  $result=mysql_query($sql);
  while (($row=mysql_fetch_array($result)) 
  {
    $id1=$row["asset"];
    $options1.="<OPTION VALUE=\"$id1\">".$id1.'</option>';
  }
  ?>
  <td>
  <SELECT NAME="asset">
  <OPTION VALUE="0">Choose One</option>
  <? echo $options1 ?>
  </td></tr>
And this is what is displayed...
".$id1."; }
The above is displayed not my populated drop down.
This works fine on my existing LAMP server but not on my new one. I am sure the php installations are of the same version so why when I have moved this does it not work.
 
     
    