Á¤¼ºÈÆ
    ±³Àç ÇÁ·Î±×·¥¿¡¼­ view.php ¼öÁ¤



±³Àç ÇÁ·Î±×·¥¿¡ CKEditor ¸¦ Àû¿ëÇÑ ÈÄ¿¡ °Ô½Ã¹°ÀÇ ³»¿ëÀ» Á¦´ë·Î º¸·Á¸é ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇؾßÇÕ´Ï´Ù.

 

view,php ¿¡¼­

<?
    session_start();
    include ("../reg_globals.php");
    include "../lib/dbconn.php";

    $sql = "select * from $table where num=$num";
    $result = mysqli_query($connect,$sql);

    $row = mysqli_fetch_array($result);

    $item_num     = $row[num];
    $item_id      = $row[id];
    $item_name    = $row[name];
    $item_nick    = $row[nick];
    $item_hit     = $row[hit];

    $file_name[0]   = $row[file_name_0];
    $file_name[1]   = $row[file_name_1];
    $file_name[2]   = $row[file_name_2];

    $file_type[0]   = $row[file_type_0];
    $file_type[1]   = $row[file_type_1];
    $file_type[2]   = $row[file_type_2];

    $file_copied[0] = $row[file_copied_0];
    $file_copied[1] = $row[file_copied_1];
    $file_copied[2] = $row[file_copied_2];

    $item_date    = $row[regist_day];
    /*
    $item_subject = str_replace(" ", "&nbsp;", $row[subject]);

    $item_content = str_replace(" ", "&nbsp;", $row[content]);
    $item_content = str_replace("n", "<br>", $item_content);
     */
    $item_subject = $row[subject];
    $item_content = $row[content];

    $new_hit = $item_hit + 1;

    $sql = "update $table set hit=$new_hit where num=$num";   // ±Û Á¶È¸¼ö Áõ°¡½ÃÅ´
    mysqli_query($connect,$sql);  // $sql ¿¡ ÀúÀåµÈ ¸í·É ½ÇÇà
?>

HTML ·Î ÀÔ·ÂÇÏ´Â °ÍÀ̱⠶§¹®¿¡

À§ÀÇ ³ë¶õ»ö¿¡ ÀÖ´Â °Íó·³ ÀÌ°÷À» comments ó¸®ÇؾßÇÕ´Ï´Ù.

 

Á¤¼ºÈÆ

 

  µî·ÏÀÏ : 2017-06-11 [22:57] Á¶È¸ : 1301 ´Ù¿î : 0   
 
¡â ÀÌÀü±ÛXAMPP ´Ù¿î·Îµå ¹× ¼³Ä¡ »çÀÌÆ®
¡ä ´ÙÀ½±Û2021 À¥¼­¹ö ±â¸»°úÁ¦ Á¶Æí¼º ¹× ÁÖÁ¦
À¥¼­¹öÇÁ·Î±×·¡¹Ö
¹øÈ£ ¨Ï Á¦ ¸ñ À̸§ Á¶È¸ µî·ÏÀÏ
°£´Ü ¸®´ª½º »ç¿ë¼³¸í¼­
Çаú ¸®´ª½º ¼­¹ö Á¢¼Ó¹æ¹ý
±â¸»°úÁ¦ Á¦¾È¹ßÇ¥ ³»¿ë
±â¸»°úÁ¦ ÃÖÁ¾¹ßÇ¥ ³»¿ë
±â¸»°úÁ¦ ÃÖÁ¾º¸°í¼­ ³»¿ë
41 ÀÚ½ÅÀÇ °Ô½ÃÆÇ¿¡ CKEditor HTML ÆíÁý±â Ãß°¡Çϱ⠰øÁö Á¤¼ºÈÆ 14752 06-05
40 ¦¦❶ ±³Àç ÇÁ·Î±×·¥¿¡¼­ view.php ¼öÁ¤ ´äº¯ Á¤¼ºÈÆ 1301 06-11
39 ¦¦❶ l¼³Ä¡ ¹æ¹ý ´äº¯ Á¤¼ºÈÆ 1444 06-05
38 ¦¦❶ lCKEditor ¼³Á¤ ´äº¯ Á¤¼ºÈÆ 2467 06-05
37 Çѱ۹®Á¦ ÇØ°á °øÁö Á¤¼ºÈÆ 1073 05-15
36 ¦¦❶ ¸®´ª½º¿¡¼­ ÆÄÀÏÀÇ ÆùÆ® È®ÀÎÇÏ´Â ¹æ¹ý ´äº¯ Á¤¼ºÈÆ 1042 05-15
35 ¦¦❶ EUC-KR ÆÄÀÏÀ» UTF-8 ÆÄÀÏ·Î ¸¸µå´Â ¹ý ´äº¯ Á¤¼ºÈÆ 1310 05-15
34 ¦¦❶ putty Á¢¼Ó ÈÄ ssh ¿¡¼­ UTF-8 ¼³Á¤ ´äº¯ Á¤¼ºÈÆ 1168 05-15
33 2017 À¥¼­¹ö ±â¸»°úÁ¦ Á¶Æí¼º ¹× ÁÖÁ¦ °øÁö Á¤¼ºÈÆ 1627 05-04
32 À¥ °ÔÀÓ °øÁö Á¤¼ºÈÆ 1720 10-18
31 ¦¦❶ l(±â»ç) À¥(HTML5)ÀÌ °ÔÀÓÀ» Áö¹èÇÒ ¶§ ´äº¯ Á¤¼ºÈÆ 1932 04-06
30 ¦¦❶ l30 Amazing Games Made Only With HTML5 ´äº¯ Á¤¼ºÈÆ 3009 03-10
29 ¦¦❶ lHow to Make a HTML5 Game ´äº¯ Á¤¼ºÈÆ 2878 03-10
28 ¦¦❶ lMake a snake game using HTML5 canvas and Jquery ´äº¯ Á¤¼ºÈÆ 1676 03-10
27 ¦¦❶ lHTML Game Example ´äº¯ Á¤¼ºÈÆ 1596 03-10

[1][2][3][4][5]