Code: Select all
$sql = "SELECT field1,field2 FROM table WHERE field =" . $value;
$blah = mysql_query($sql);
In this case it would show you that using double quotes for your $brand key and your query doesn't work well.
2) mysql_ functions are deprecated and will probably be removed completely from a version in the very near future. PDO is a better way to interact with your database, and it's easy, I promise. check out this short video for a quick crash course http://jream.com/learning/videos/php-oo ... o-examples