title: Issue with PHP web service response
body: <p>I created a web service in php which returns JSON. It works fine but it is not consistent most of the times it pulls all the information needed other times it leaves out a specific column which is the second to last table named table_bio. I thought it was a caching issue however I put in the relevant headers in apache and within the service and still no luck. Thing is that the service is getting the correct information but not returning the correct info.  </p>
  
  <p>Below is my code:</p>
  
  <pre><code>&lt;?php
   error_reporting (E_ALL ^ E_NOTICE);
   $id = $_GET['Table'];
   /* grab the posts from the db */
   $query = "SELECT * FROM table WHERE table_id='$id'";
   $result = mysql_query($query,$link) or die('Errant query:  '.$query);
  
   /* create one master array of the records */
   while($post = mysql_fetch_assoc($result)) {    $posts = $post;       } 
   /* output in necessary format */
   header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
   header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
   header('Pragma: no-cache'); // HTTP 1.0.
   header('Expires: 0'); // Proxies.
   header('Content-type: application/json');
   echo $_GET['onJSONPLoad'];
   echo "(" . json_encode($posts) . ")";
   @mysql_close($link);
   ?&gt;
  </code></pre>
  
  <p>Any ideas as to why this is happening?</p>
  
  <p>I should also mention the column that is not showing sometimes is of type text</p>