Final Code I used for this. Thanks to @hakre.
Code(will real variable name):
        $sqlrequest = mysqli_query($conn,"SELECT COUNT(*) AS id FROM skillstable");
        $skillstablecount = mysqli_fetch_array($sqlrequest);
        $endfor = $skillstablecount['id'];
        $sqlrequest = mysqli_query($conn,
        "SELECT * FROM skillstable
            LEFT OUTER JOIN char_" . $infochar['name'] . "_skills
            ON skillstable.skillname = char_" . $infochar['name'] . "_skills.skillname
            WHERE char_" . $infochar['name'] . "_skills.skillname IS null;");
        for ($x=1; $x<=$endfor; $x++){
        array_push($nonrankedskill,mysqli_fetch_array($sqlrequest));
        }
        ?>
extracting information from array like this:
$nonrankedskill[rownumber][columnnumber];
i'm trying to figure out how to do this but my search have been unsuccessful so far.
I'm using php and MySQLi to compare two table a get the output of the difference between two table based on two column.
rankedskill:
id    skillname    subskill    rank
0     walk         slow        2
1     walk         fast        4
2     run                      1
3     jump                     7
generalskill:
id    skillname    othercolumn1
0     walk         something
1     fight
2     jump
3     dive
4     fly
5     run                        
Output wanted:
$nonrankedskill = array();
I want this variable to contain everything from the column "skillname" in tabel "generalskill" that is not contained in table "rankedskill". I should have at the end "fight", "dive" and "fly".
Could anyone refer me to some documentation on a way to achieve this? or explain me how to do it?
 
    