I'm using printf to build a querystring to pass to another page.
What I am finding though is that it is passing null values in the querystring string e.g &aircon=&shops= which in turn is causing me problems with my SQL I am building on the next page.
Does anyone know if there is an argument within the printf function which will not return null values??
<?php printf("%s?pageNum=%d%s&resort=%s&date=%s&days=%s&beds=%s&price=%s&aircon=%s&beach=%s&shops=%s", $currentPage, min($totalPages, $pageNum + 1), $queryString, $resort, $date, $days, $sleeps, $price, $aircon, $beach, $shops); ?>