<!doctype html>

<html>

<head>

<title>car list</title>

<meta charset="utf-8">

</head>

<body>

 <?php 

  $connect = mysql_connect("localhost", "root", "");

mysql_select_db("test", $connect);

  $result = mysql_query("select * from car", $connect);

while($row = mysql_fetch array($result)){

echo "$row[0] $row[1] $row[2]";

mysql_close($connect);

?>

</body>

</html>



로컬에 데이터베이스 test 로 만들고 안에 테이블 car 라는 걸 만들고 한줄 집어넣음.

그런데 왜...... 브라우저로 위 파일 열어보면 아무것도 안 뜬 빈 화면으로 나올까..............