Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

erreur: Warning: mysql_fetch_object()

Bonjour,

Je rencontre un soucis lorsque je veux rajouter un package à un groupe dynamique ou même statique.

Je séléctionne le groupe, je clique sur add package, 

Onglet, Packages on computers. Use the advanced option of teledeploy = NO

et voici le message d'erreur qui apparait au lieu de faire apparaitre ma liste de package.

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\ocsreports\require\function_table_html.php on line 1206

Voici a quoi cette ligne correspond.

//echo $queryDetails;
        while($item = mysql_fetch_object($resultDetails)){
            if ($i>=$index){
                unset($champs_index);
                if ($item->ID != "")
                $champs_index=$item->ID;
                elseif($item->FILEID != "")
                $champs_index=$item->FILEID;
    
                if (isset($list_id_tri_fixe)){
                    $index=$champs_index;    
                }
                
                if ($index>$num_rows_result){
                    break;
                }
                
                        //on arr�te le traitement si on est au dessus du nombre de ligne
                
                
                
                foreach($item as $key => $value){
                    $sql_data_cache[$index][$key]=$value;                    
                    if ($index<$value_data_end and $index>=$value_data_begin){
                        flush();
                        $sql_data[$index][$key]=$value;                            
                        foreach ($list_fields as $key=>$value){
                            if ($tab_options['VALUE'][$key]){
                                if ($tab_options['VALUE'][$key][$champs_index] == "" and isset($tab_options['VALUE_DEFAULT'][$key]))
                                $sql_data[$index][$value]=$tab_options['VALUE_DEFAULT'][$key];
                                else
                                $sql_data[$index][$value]=$tab_options['VALUE'][$key][$champs_index];
                            }
                            
                        }
                
                    }            

Merci pour votre aide

in OCS Inventory NG server for Windows by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...