Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP jQuery Autocomplete fetch_object fatal error?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Brett Magee
jQuery Autocomplete fetch_object fatal error?
1 Answer(s)      2 years and 5 months ago
Posted in : PHP


I am consistently getting this error when I use the code supplied here, even after updating the database information etc.

http://www.roseindia.net/tutorial/ajax/jquery/autocomplete.html

"Fatal Error: Call to a member function fetch_object() on a non-object"

Now the code I am using is this, I added some slight variant to it as I wanted to go through two tables instead of one.


Advertisement
View Answers

June 19, 2012 at 5:24 PM


Here is an example of Jquery Autocomplete box.

<script>
    $(function() {
        var availableTags = [
            "ActionScript",
            "AppleScript",
            "Asp",
            "BASIC",
            "C",
            "C++",
            "Clojure",
            "COBOL",
            "ColdFusion",
            "Erlang",
            "Fortran",
            "Groovy",
            "Haskell",
            "Java",
            "JavaScript",
            "Lisp",
            "Perl",
            "PHP",
            "Python",
            "Ruby",
            "Scala",
            "Scheme"
        ];
        $( "#tags" ).autocomplete({
            source: availableTags
        });
    });
    </script>



<div class="demo">

<div class="ui-widget">
    <label for="tags">Tags: </label>
    <input id="tags">
</div>

</div><!-- End demo -->



<div style="display: none;" class="demo-description">

</div>


Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com