php - this code have error Object of class mysqli_result could not be converted to string -


  यहां कोड दर्ज करें $ tt1 = mysqli_query ($ con, "SELECT MAX ('task_id'), MIN (task_id) ) कार्य से "); प्रतिध्वनि $ tt1;   

इस कोड को MySQL से कनेक्ट होने के बाद

  $ tt1 = mysqli_query ($ con, "चुनें MAX ('task_id') एएस अधिकतम, MIN (task_id) से कार्य से न्यूनतम)"); $ पंक्ति = mysqli_fetch_row ($ tt1); प्रति पंक्ति गूंज ['अधिकतम']; प्रति पंक्ति गूंज ['मिनट'];   

आप mysqli_fetch_row () के बजाय mysqli_fetch_array () या mysqli_fetch_assoc () कर सकते हैं क्योंकि आप प्राप्त करने का प्रयास करते हैं एक पंक्ति, और चुनिंदा क्वेरी में उपनाम को कॉलम में जोड़ने के लिए, उपनाम से परिणाम कॉल करने के लिए: MAX ('task_id') अधिकतम == & gt; $ पंक्ति ['अधिकतम']

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

Installing croogo for cakephp -