<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <table width="500" align="center" border="0" cellspacing="0"> <tr> <td> List of Student </td> </tr> <tr bgcolor="#FF0033"> <td>Name </td> <td>Father Name </td> <td>Gender </td> <td>Qualification </td> </tr> $SERVERNAME='localhost'; $USERNAME= 'ROOT'; $PASSWAROD= ''; $DBNAME='test'; $conn = new mysqli($SERVERNAME,$USERNAME,$PASSWAROD,$DBNAME); if ($conn -> connect_error) echo "connection error"; $sql = "SELECT * FROM studentinfo"; $result= $conn -> query($sql); if ($result -> num_rows > 0) { while ($row = $result -> fetch_assoc()) { $name = $row['name']; ?> <tr> <td> </td> </tr> } } </table> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)