I have a mysql table which has two columns: NAME, ADDRESS. i want to assign the both column names into variable.
if i give one column name and it works as below.
$yourfield = "NAME"; //it prints value of NAME column
I want to retrive values of both column. how can i assign both column names to variable $yourfield ????
try1: $yourfield = "NAME, ADDRESS"; //NOT WORKING???
try2: $yourfield = "NAME" , "ADDRESS"; //NOT WORKING???