묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이 문구가 잘못되었나요?
2002.04.10 09:09
안 나오는 문재의 부분입니다...
<?
$host_name = "localhost";
$user_name = "**";
$user_password = "**";
$db_name = "**";
$connect = mysql_connect($host_name,$user_name,$user_password) or err("에러 발생");
mysql_select_db($db_name, $connect) or err("에러 발생");
$que = "SELECT * FROM Human_info";
$data = mysql_query($que, $connect);
$total = mysql_affected_rows();
$human = mysql_fetch_array ($data);
mysql_data_seek($data,0);
echo "이름 : $human[name], 나이 : $human[age]살, 전화번호 : $human[tel_num], 주소 : $human[address]";
mysql_query($que,$connect) or err("에러 발생");
function err($e)
{ echo $e;}
?>
<?
$host_name = "localhost";
$user_name = "**";
$user_password = "**";
$db_name = "**";
$connect = mysql_connect($host_name,$user_name,$user_password) or err("에러 발생");
mysql_select_db($db_name, $connect) or err("에러 발생");
$que = "SELECT * FROM Human_info";
$data = mysql_query($que, $connect);
$total = mysql_affected_rows();
$human = mysql_fetch_array ($data);
mysql_data_seek($data,0);
echo "이름 : $human[name], 나이 : $human[age]살, 전화번호 : $human[tel_num], 주소 : $human[address]";
mysql_query($que,$connect) or err("에러 발생");
function err($e)
{ echo $e;}
?>