Actions

CodeExample

Difference between revisions of "Debugging a specific query"

From Joomla! Documentation

(External links removed. See JDOC:Wiki_policy. Also fixed minor formatting issues.)
m (Example:debugging a specific query: Taking example from CodeExample:4b40d77049e1f and adding my username at bottom (original meaning of the link that wrongly appeared for tildas))
 
Line 4: Line 4:
 
var_dump($db->replacePrefix( (string) $db->getQuery()) );//debug
 
var_dump($db->replacePrefix( (string) $db->getQuery()) );//debug
 
</source>You can also try this with some [[How_to_debug_your_code|other debug methods]] instead because a "var_dump" (bit like echo) will not always display on your screen.
 
</source>You can also try this with some [[How_to_debug_your_code|other debug methods]] instead because a "var_dump" (bit like echo) will not always display on your screen.
 +
[[User:E-builds|E-builds]] 2012-09-11
 
[[Category:JDatabase::debug]][[Category:JDatabase]][[Category:Database]][[Category:CodeExample]] [[Category:MethodExample]]
 
[[Category:JDatabase::debug]][[Category:JDatabase]][[Category:Database]][[Category:CodeExample]] [[Category:MethodExample]]

Latest revision as of 06:21, 12 September 2012

Example:debugging a specific query

//$db = your db object gotten before, with a query loaded (set)
var_dump($db->replacePrefix( (string) $db->getQuery()) );//debug
You can also try this with some other debug methods instead because a "var_dump" (bit like echo) will not always display on your screen.

E-builds 2012-09-11