can anybody tell what wrong with mysqli_num_rows function in this code please?? : i think the error is with sql query or just the numrows funtion????
few more things might be wrong because i've made alot of changes and m totally confused now...
can anybody tell what wrong with mysqli_num_rows in this code please??  thanq in advance    



    
				<?php
					$i=0;
					$key=$_GET['abc'];
					$ex=explode(" ", $key);
					$query="SELECT * FROM search";
					
					/*foreach ($ex as $val)
					{
						$i++;
						if($i == 1)
						
							$query .="keywords like '%$val%' ";
							else
							$query .="or keywords like '%$val%' ";
						
					}*/
					$con=mysqli_connect("localhost","xxxxxxx","xxxxxxx","search");
					if (!$con)
						
							die("Connection failed: " . mysqli_connect_error());
						
							else
								
							echo "Connected successfully";
							
					mysqli_select_db($con,"search");
					
					$queryy=mysqli_real_query($con,$query);
					$nr =@mysqli_query($con, $queryy);
					$row=mysqli_num_rows($nr);
					
					if($row>0)
					{
						while($r=mysqli_fetch_assoc($queryy))
						{
							$id=$r['id'];
							$title=$r['title'];
							$description=$r['description'];
							$keywords=$r['keywords'];
							$link=$r['link'];
							
							echo "<h2> <a href='$link'>$title</a></h2> $description <br /><br />";
							
						}
					}
					else
						echo "no results found for \"<b>$key</b>\" ";	
				?>