Instead of writing:
if (idx == 1)
{
result = “Yes”;
}
else
[...]
Here’s a quick little bit of code that shows how to delete records in your database using SubSonic’s Query Tool. I know you can write this is fewer lines of code, but I think this shows a little more clearly what’s going on.
Show a recent posts from a specific category in wordpress.
Using trace back to get the size of a specific directory.