
| Tutorials Main Latest Tutorials Popular Tutorials Top Rated Tutorials |
| Login to See your Favorite Tutorials |
| Description: This is a very simple tactic to debug a phpnuke mysql query if you have error reporting on. | |
| Version: 1.0 | |
| Added on: 27 January 2009 | |
| Author: Floppy | |
| Difficulty Level: Very Easy | |
| Views: 727 | |
| Rating: 9.0 (1 Vote) | |
| Code: |
| global $db, $prefix;
$sql = "SELECT * FROM ".$prefix."_mytable"; $query = $db->sql_query($sql); if(mysql_error()){ echo mysql_error(); die(); } |