• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Xampp: Warning: Invalid argument supplied for foreach() ...

Michaeel

New Member
Joined
Mar 6, 2009
Messages
272
Reaction score
1
Hey, I have problem with category players in my database.
When I enter there than:
Warning: Invalid argument supplied for foreach() in C:\xampp\phpMyAdmin\libraries\relation.lib.php on line 386


My relation.lib.php
380-400 lines
Code:
        foreach ($analyzed_sql[0]['foreign_keys'] as $one_key) {
            // The analyzer may return more than one column name in the
            // index list or the ref_index_list; if this happens,
            // the current logic just discards the whole index; having
            // more than one index field is currently unsupported (see FAQ 3.6)
            if (count($one_key['index_list']) == 1) {
                foreach ($one_key['index_list'] as $i => $field) {
                    // If a foreign key is defined in the 'internal' source (pmadb)
                    // and in 'innodb', we won't get it twice if $source='both'
                    // because we use $field as key

                    // The parser looks for a CONSTRAINT clause just before
                    // the FOREIGN KEY clause. It finds it (as output from
                    // SHOW CREATE TABLE) in MySQL 4.0.13, but not in older
                    // versions like 3.23.58.
                    // In those cases, the FOREIGN KEY parsing will put numbers
                    // like -1, 0, 1... instead of the constraint number.

Whats wrong? :(
 
Back
Top