Im getting a warning Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\showinfo.php on line 7. here is the showinfo.php code [code] <?php $con=mysql_connect("localhost","root","") or die("Couldnt Connect :" . mysql_error()); mysql_select_db("joomla"); $uname=$_GET['name']; $query="select * from j_userdetails where name= '$uname' "; while ($line = mysql_fetch_array($query, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>"; ?> [/code]