i am maintaining all student's project database.
project details (pro_image,pro_name,pro_guide,pro_cost....etc)
and displaying this is in table format in html
what i want is after some 4-5 project entries .
pointer should goes new row then add 4-5 entries again.
But all project showing in same single column
what should i do ?
here my code :
<html>
<head> <title> cool </title> </head>
<body>
<?php
$conn=mysql_connect("localhost","root","");
if(!$conn)
{
die("Connection Failed :".mysqli_connect_error());
}
$sql="SELECT * FROM `pro_det` ";
mysql_select_db("dub");
$retval=mysql_query($sql,$conn);
if(!$retval)
{
die("could not get data".mysql_error());
}
?>
<table>
<?php
while($row=mysql_fetch_array($retval,MYSQL_ASSOC))
{
?>
<tr>
<img src= <?php"echo $row['pimages'] height="200" width="100"" ?>
<?php
echo" </br>";
echo" pname : {$row['pname']}</br>";
echo" project member : {$row['pmember']}</br>";
echo" project guide : {$row['pguide']}</br>";
echo" project abs : {$row['pabs']}</br>";
echo".................</br>";
?>
</tr>
<?php
}
echo"Fetched data sucessfully \n";
mysql_close($conn);
?>
</table>
</body>
</html>
