mysql_connect가 deprecated 되었다. mysqli_connect로 바꿔야 한다.
$dbname="test";
$dbid="test";
$dbpass="test1234";
$link = mysqli_connect("localhost",$dbid,$dbpass,$dbname) or die("Error " . mysqli_error($link));
$query = "SELECT * FROM `form1`" or die("Error in the consult.." . mysqli_error($link));
$result = $link->query($query);
while($row = mysqli_fetch_array($result)) {
echo $row[0]. $row[1] . "<br>";
}
댓글 달기