Need help with db select
As usual I have been stuck for a while on what is probably a very simple solution so perhaps someone can help me, thanks.
I have a portfolio page to which I post a url to filter the portfolio type (0, 1 or 2) and display the results.
It works ok except that I can't get the url right to show all records. I have tried things like
/portfolio.php?websitetype=1&2
and
/portfolio.php?websitetype=*
/portfolio.php?websitetype>0
Perhaps I need to change my select?
$query_portfolio = "SELECT * FROM portfoliodb WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."' AND portfoliodb.visible = 1 ORDER BY portfoliodb.portfolio_id DESC";
