[Solved] Error: undefined variables
Now this is just a guess, but your $search might be empty. That would result in a query along the lines of “SELECT * FROM products WHERE product_keywords LIKE ””, returning 0 rows. The fix would be: <?php include(“includes/connect.php”); if(isset($_GET[‘sub’])){ $search = $_GET[‘search’]; if (isset($search)){ $query =”select * from products where product_keywords=”$search” “; $run=mysql_query($query); ?> … Read more