How to turn values from a query result into variable and variable value?
<p>I'm trying to pull two columns from my database and turn the column1 value into the variable name and the value from column2 into the variable value.
Like this:</p>

<p>column1 | column2</p>

<p>value1  | value2</p>

<p>value3  | value4</p>

<pre><code>The result should be: 
$value1 = "value2"
$value3 = "value4"
etc..
</code></pre>

<p>Is there any way to achieve this with one singe query?</p>