<html>
<head>
<title>DIY Web Contact Management System</title>
<?php
require_once("db_connect.php");
//$type = $POST['searchtype'];
//$text = $POST['searchtext'];
//trim($text);
$q_result = mysql_query("select * from CUSTOMER where CUS_Name = $cname");
<body bgcolor="#FFFFFF">
<table width="75%" border="1">
<?
while($row = mysql_fetch_row($q_result))
{
$field=mysql_field_name($q_result);
echo ("<tr><td>".$field."</td>");
for($i=0; $i<mysql_num_fields($q_result); $i++)
echo ("<td>".$row[$i]."</td></tr>");
}
?>
</table>
</body>
</head>
</html>
Actually my purpose is to fetch the data from CUSTOMER table of 17 attributes so that i could view in (row=17, col=2) Somehow its shown :
"); for($i=0; $i".$row[$i]."
"); } ?>
- Could anyone plz help me. 😕