Welcome Guest, Not a member yet? Register   Sign In
how can I create an empty database query object?
#11

[eluser]NogDog[/eluser]
Something that I just thought of: there's actually no need to query a table:
Code:
SELECT 1 WHERE 1=2
#12

[eluser]Reevak[/eluser]
Since nobody answered your question properly, this is how you create an empty DB object in CI 2.1

$query = new CI_DB_mysql_result();

Then if you run $result = $query->result_array(); it won't break Smile
#13

[eluser]Reevak[/eluser]
Create an empty DB object like this:

Code:
$query = new CI_DB_mysql_result();

And it won't break if you run this:

Code:
$query_thread = $query->result_array();




Theme © iAndrew 2016 - Forum software by © MyBB