How to convert any value from sql table into string
<p>There is some data is stored in my sql table. I want to fetch the data in the form of string.</p>
<pre><code>$sql= &quot;SELECT hash FROM signupinfo WHERE fname = 'nikhil';&quot;;
$hashfix = mysqli_query($connection,$sql); 
echo $hashfix;
</code></pre>
<p>but the error coming</p>
<blockquote>
<p>Catchable fatal error: Object of class mysqli_result could not be converted to string in C:\WampDeveloper\Websites\localhost\webroot\signup.php on line 48</p>
</blockquote>