Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers
Viewing all articles
Browse latest Browse all 11994

erreur: Warning: mysql_fetch_object()

$
0
0

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


Viewing all articles
Browse latest Browse all 11994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>