CREATE TEMPORARY TABLE tbl_temp
SELECT artist_id,artist_name FROM tbl_artist WHERE artist_name = 'unknown';
INSERT INTO tbl_temp
SELECT artist_id,artist_name FROM tbl_artist WHERE artist_name <> 'unknown'ORDER BY artist_name;
SELECT * from tbl_temp;
what is the best way to execute this command in php. i'm new to php and mysql so i'm kinda experiencing difficulties.
any help would be greatly appreciated.