Select value from database and store into a temporary variable
- by user1616230
I want to select a stored value from database and then put it into a temporary variable.
For example, I have a column called category, one value under it is m, so I want to select this m value from the database, let's say from a table of a database called user_info.
Then I want to put it into a variable, let's name it $res.
After that, I want…