본문 바로가기

프로그래밍언어/그누보드5

그누보드5(GnuBoard5) mysql 관련 내장함수

sql_query : db에 연결 query를 실행함  == mysql_query 역할

 

 function sql_query($sql, $error=G5_DISPLAY_SQL_ERROR, $link=null) 

 

sql_fetch : db에 연결, 결과값 한행을 배열로 반환, mysql_query 실행 후 mysql_fetch_array를 실행하는 역할, 내부에서 sql_fetch_array를 실행

 

 function sql_fetch($sql, $error=G5_DISPLAY_SQL_ERROR, $link=null) 

 

 

sql_fetch_array : db에 견결, 한행 연괄배열로 값을 얻음, mysql_fetch_assoc 결과값을 가져옴

 

 function sql_fetch_array($result) 

 

sql_insert_id : mysql_insert_id와 같은 역할, insert를 실행한 후 해당 id값을 가져옴.

 

 function sql_insert_id($link=null) 

 

sql_num_rows : mysql_num_rows와 같은 역할, 쿼리가 실행된 후 반환된 결과값의 갯수를 알려줌

 

 function sql_num_rows($result)