Views Arguments formatted nicely for the title I know that you can get the arguments in the view's title and format it so that it makes sense so that an argument like "search-for-something" can be output as "Search For Something".

I have an argument passed like "argument-here" and I need to search in the database for that exact phrase.

The problem is that in order to get it to format nicely in the title as "Argument Here", this also removes the dash in the SQL query - resulting in nothing for my view to return.

Is there a way that I can format the result for the title without messing up the actual argument for the SQL query?
Restore your view so that the query works. Then, make sure the PHP Filter module is enabled and that you have permissions to use it.

In the view, add this header:

&lt;?php
$view = views_get_current_view();
$my_title = ucwords(str_replace("-", " ", $view-&gt;args[0]));
drupal_set_title($my_title);
?&gt;


Make sure the input format for the header is PHP. 

The view's preview will show the wrong title. That's ok. When you navigate to the page, you'll see that the title is as you want it.