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:
column1 | column2
value1 | value2
value3 | value4
The result should be:
$value1 = "value2"
$value3 = "value4"
etc..
Is there any way to achieve this with one singe query?