Hi, I'm new to PHP.If i execute this code. It shows the warning as
"Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in c:\wamp\www\login_action.php on line 15
Name Address Telephone company"
I don't know how to solve this.
<?php
include 'connection.php';
$uname = $_REQUEST['uname'];//extract($_POST); $uname
$pword = $_REQUEST['pword'];
?>
<table cellpadding=0 cellspacing=0 border=0 width='50%' id='table'>
<tr>
<td> Name</td>
<td> Address</td>
<td> Telephone</td>
<td> company</td>
</tr>
<?php
$result = mysql_query("SELECT * FROM admin WHERE name ='shyloo'");
while($rs = mysql_fetch_assoc($result))
{
echo "<tr>";
echo "<td>";
echo $rs['name'];
echo "</td>";
echo "<td>".$rs['address']."</td>";
echo "<td>".$rs['tele']."</td>";
echo "<td>".$rs['comp']."</td>";
}
?>