I've taken a stab at a little web project, and now i've got some variables which i'd like to be able to change. I've put the variables in a MySQL table with 'id' 'variable' and 'value' as columns. Could someone please help me out with retreiving just the 'value' of each row? In a php config file i'd have something like:
$variablename = $result['blahblahblahblah'];
$variablename = $result['blahblahblahblah'];
$variablename = $result['blahblahblahblah'];
etc.
These would all be in the same table, at the moment i'm just getting the value of the last row.
Question
Niels
Hi guys,
I've taken a stab at a little web project, and now i've got some variables which i'd like to be able to change. I've put the variables in a MySQL table with 'id' 'variable' and 'value' as columns. Could someone please help me out with retreiving just the 'value' of each row? In a php config file i'd have something like:
$variablename = $result['blahblahblahblah'];
$variablename = $result['blahblahblahblah'];
$variablename = $result['blahblahblahblah'];
etc.
These would all be in the same table, at the moment i'm just getting the value of the last row.
Any help would be appreciated.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts