<?php
$con=mysql_connect("localhost","root","");
if(!$con)
{
die("could not connect:".mysql_error($con));
}
mysql_select_db("form",$con);
$result=mysql_query("select * from submit");
while($row=mysql_fetch_array($result))
{
echo $row." ".$row;
echo "<br/>";
}
mysql_close($con);
?>

error ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.