I am writing this code
<html>
<head>
<title></title>
</head>
<body>
<?php
$link = mysql_connect("localhost", "administrator", "")
or die ("Could not connect to MySQL");
mysql_select_db ("test")
or die ("Could not select database");
$query = "SELECT * FROM votimi";
$result = mysql_query ($query)
or die ("Query failed");
// printing HTML result
print "<table>\n";
while ($line = mysql_fetch_array($result)) {
print "\t<tr>\n";
while(list($col_name, $col_value) = each($line)) {
print "\t\t<td>$col_value</td>\n";
echo $col_value;
}
print "\t</tr>\n";
}
print "</table>\n";
?>
</body>
</html>
I am riciving this
3 3
4 4
5 5
5 5
5 5
but my database in mysql loks like this
votat
-----
3
4
5
5
5
the answer is why i am reciving two colums
i want to recive one column like in mysql
lklkjlkj