I am querying a database to get 6 values in my params table suing this;
$result = mysql_query("SELECT * FROM params");
while($row = mysql_fetch_array($result))
{
$param = $row['value'] ;
}
is this right, if so is their away i can add one to the variable name each time round so i get $param1, $param2….
I dont want to have to send a query to the database for each param, is it possible to get them all like this?
The simpliest way is to use an array:
Than you get $param[0], $param[1], …