I have a custom module. I would like to see all the blocks in it . For that i have written a query in my costom.module file . But it will show me the following error.
Query:-
$result = db_query('SELECT *FROM `block` ORDER BY
`block`.`delta` ASC LIMIT 0 , 30');
while ($node = db_fetch_object($result)) {
print_r("$result");
}
Why this is not working, Where am i going wrong ?