Click here to Skip to main content
15,886,787 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
PHP
<php>
include ("connectivity.php");
mysql_select_db('world_portal');
$sql = mysql_query("SELECT * FROM rmsignup"); 

? >
<html>
<head>
<title>Regional Manager Sheet</title>
 <link rel="stylesheet" href="css/style1.css"  type="text/css" />
</head>
<body bgcolor="#E6E6FA">
<center>


<table border="1">
<tr>

<th>First Name</th>
<th>Last Name</th>
<th>Mobile</th>
<th>Email ID</th>
<th>Password</th>
<table><tbody><tr>

while($row=mysql_fetch_assoc($sql)){
echo"<table><tbody><tr>";
echo"<td>".$row['firstname']."</td>";
echo"<td>".$row['lastname']."</td>";
echo"<td>".$row['mobile']."</td>";
echo"<td>".$row['email']."</td>";
echo"<td>".$row['password']."</td>";
echo"</tr></tbody></table>";
}
?&gt;
</tr></tbody></table></tr></table>
</center>
</body>
</html></php>
Posted
Updated 25-Jul-15 18:25pm
v2
Comments
Suvendu Shekhar Giri 25-Jul-15 22:40pm    
Problem seems to be in connectivity.php. Can you share the connectivity.php code?
Note:
mysql_*() is now deprecated and will be removed soon, so better to use mysqli_*().
Member 10011989 19-Sep-15 4:14am    
your $sql variable should be global in order to use in another php tag

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900