<html>
<body>
<?php
$con = mysql_connect("localhost","root"); if (!$con) { die('Could not connect: ' . mysql_error()); }
mysql_select_db("comentss", $con);
if(isset($_POST['submit'])){ $comment=$_POST['comments']; $q="insert into table2 (comment) values ('$comment')"; mysql_query($q); } $q="select comment from table2"; $result=mysql_query($q); while($row=mysql_fetch_array($result)){ //this is what i want to separate with tables... echo "" . "
" . $row['comment']."";
} ?>
</body>
</html>