Save a mysql query to a string in PHP : <p>I am trying to execute in PHP a sql query and save it to a single string. The SELECT query will output a single cell of the table and I need it as a string.</p>

<pre><code>$pdo1 = new PDO('mysql:host=dbIP;dbname=dbname', 'dbuser', 'pw');


$statement = $pdo-&gt;prepare("SELECT username FROM wcfusers WHERE email='$email");
</code></pre>

<p>I found some other methodes but they dont use the PDO. I would apreciate any kind of help. I hope someone can help me with my small problem.</p>
