apm setup깔고 phpMyAdmin 들어가서 DB 생성하고 테이블,필드 만들었어요
이렇게요
여기서 height 필드 값이 168이상인 값들만 출력하려면
<?PHP
$conn = mysql_connect ('localhost', 'root', 'apmsetup');
$db_status = mysql_select_db ('profiles');
if (!$db_status){
error ("DB_ERROR");
exit;
}
$query="select * from profiles where height >= 168";
mysql_query("SET NAMES 'euckr'"); // 주의 : 한글
$result = mysql_query ($query);
print "<table border = 1><tr>".
"<th>name</th>".
"<th>gender</th>".
"<th>byear</th>".
"<th>height</th>".
"<th>hobby</th>".
while($row = mysql_fetch_row ($result)){
print "<tr><td>".$row[0]."</td>".
"<td>" . $row[1] . "</td>".
"<td>" . $row[2] . "</td>".
"<td>" . $row[3] . "</td>".
"<td>" . $row[4] . "</td>";
}
print "</table>";
?>
이렇게 했는데 왜 오류가뜰까요..?
while 문에서 오류가 난다고 나오는데..
가르쳐주십시오ㅠㅠ
계신가요->계시나요 [리듬 맞춤법 봇♬]