I have this sql query:
SELECT * 
FROM productoptions  
    INNER JOIN options on productoptions.OptionID = options.OptionID 
    INNER JOIN optiongroups ON productoptions.OptionGroupID = optiongroups.OptionGroupID;
Is there a way to fetch it as a multidimensional array? In a way that every optiongroupname is an array containing all of its optionaname?
I will be fetching it from a PHP Script

 
     
     
    