Object of class CI_DB_mysql_result could not be converted to string |
[eluser]andrewtheandroid[/eluser]
[quote author="Jan from Hamburg" date="1235317167"]Could you please explain how you solved it? Got the same - Need a hint. Thank you!!![/quote] I know this is an old post but for anyone else wondering how to solve this.. What the first reply meant was that you can't convert the query object to a result. To do this you need to use the result() or result_array() method in the Generating Query Results userguide. Example: Where you are getting your result (eg. a model) Code: function getProfile($staffid) { Where you are parsing the results (eg. controller). and sending to view. Code: // Obtaining result |
Messages In This Thread |
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 10-13-2008, 05:52 AM
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 10-13-2008, 05:56 AM
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 12-09-2008, 07:50 AM
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 12-09-2008, 04:47 PM
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 02-22-2009, 03:39 AM
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 11-02-2009, 02:35 AM
Object of class CI_DB_mysql_result could not be converted to string - by El Forum - 12-10-2009, 06:23 PM
|