Welcome Guest, Not a member yet? Register   Sign In
Adding standalone blog

(This post was last modified: 06-11-2015, 12:10 PM by mwhitney.)

That script is apparently intended to operate as a stand-alone blog. While a CI view is capable of executing a great deal of PHP code, it is very likely that the script will have a lot of issues trying to co-exist with CI since it was never intended to work alongside CI.

You could try removing the code you've quoted and creating a helper which defines the sql_result() function to call $this->db->query() and return the query result, but you'll really have to pay attention to how it uses the result to make sure what you're returning will work with the script.

Messages In This Thread
Adding standalone blog - by keld - 06-07-2015, 05:04 PM
RE: Adding standalone blog - by josetrindade - 06-08-2015, 05:18 AM
RE: Adding standalone blog - by keld - 06-10-2015, 02:09 PM
RE: Adding standalone blog - by mwhitney - 06-11-2015, 12:09 PM

Theme © iAndrew 2016 - Forum software by © MyBB