title: convert sql resultset to string, php
body: <p>I am have two php scripts, say "first.php" which calls another php, "second.php" script with a GET value.</p>
  
  <p>The first.php calls the second.php by using GET method. </p>
  
  <p>The GET method value is a string retrieved from the database .  </p>
  
  <p>first.php code </p>
  
  <pre><code>$someString = mysqli_query($connectionName,"SELECT someString from db where id=1";
  
  /* Then the php redirects to -&gt;" */
  
  'mywebsite.com/PHP/second.php?data='.someString
  </code></pre>
  
  <p>second.php</p>
  
  <pre><code>if(isset($_GET['data']))
  {
       $new_data = $_GET['data'];
  
  }
  </code></pre>
  
  <p>My problem is that, the data in "someString" is in resultset format ,So I am getting a php error that the GET method needs a String value.</p>
  
  <p>Is there any possible way to convert the sql resultset to string?</p>