½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 161 | Á¶È¸¼ö 2,762 | µî·ÏÀÏ 2003-11-20 09:47:43

´Ð³×ÀÓ

sunny97

À̸ÞÀÏ

orange123@orgio.net

Á¦¸ñ

PHPÆÄÀÏÀ» ½ÇÇà,..
³»¿ë

¾È³çÇϼ¼¿ä~

¶Ç ¿À·£¸¸¿¡ Áú¹® µå¸³´Ï´Ù. ^^;

À½.. ´Ù¸§ÀÌ ¾Æ´Ï¶ó¿ä. Á¦°¡ php·Î ¾Æ·¡°°Àº ÇÁ·Î±×·¥À» ÄÚµùÇߴµ¥¿ä.

ÀÌ ÆäÀÌÁöÀÇ À̸§Àº resave.phpÀÔ´Ï´Ù. ±×·±µ¥. ÀÌ ÆäÀÌÁö´Â DB¿¡¼­ ¹Ù·Î ºÒ·¯¿Í¼­ ½ÇÇàÀÌ µÇ´Â°Çµ¥¿ä. .

ÀÌ ÆäÀÌÁö¸¦ php°¡ ½ÇÇàµÈÈÄ html·Î ¹Ù²Ù¾î ÁÖ´Â ÇÁ·Î±×·¥À» ©¼ø ¾ø³ª¿ä?

±×·¯´Ï±î.. º¯¼ö°¡ µé¾î°¡Áö ¾ÊÀº.. php½ÇÇàÈÄÀÇ... htmlÆÄÀϷοä..

¸ðµÎ ½ºÆ®¸µÀ¸·Î ÀúÀåÇؼ­.. ¾î¶»°Ô ÇÏ¸é µÈ´Ù´Âµ¥.. Àß ¸ð¸£°Ú¾î¿ä. ¾Æ½Ã´ÂºÐ ´äº¯ Á». ºÎŹµå¸³´Ï´Ù.


<?php

$connect = mysql_connect("localhost","root","") or die("DB¼­¹ö ¿¬°á½ÇÆÐ");

$status = mysql_select_db("list",$connect);

if(!$status) {
   $errNO = mysql_errno($connect);
   $errMSG = mysql_error($connect);

   echo("¼­¹öÀÇ sample µ¥ÀÌÅͺ£À̽º¿¬°á¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù!<br>");
   echo("¿¡·¯ÄÚµå $errNO : $errMSG<br>");
   exit;
}


$query = "select id,list1,list2,list3,url1,url2,url3 FROM listdb";


$result = mysql_query($query,$connect);
if(!$result) {
   $errNO = mysql_errno($connect);
   $errMSG = mysql_error($connect);

   echo("¿¡·¯ÄÚµå $errNO : $errMSG<br>");
   exit;
}

?>


<?php

$my_id = mysql_result($result,0,0);
$my_list1 = mysql_result($result,0,1);
$my_list2 = mysql_result($result,0,2);
$my_list3 = mysql_result($result,0,3);
$my_url1 = mysql_result($result,0,4);
$my_url2 = mysql_result($result,0,5);
$my_url3 = mysql_result($result,0,6);
?>

 


<tr><td>&nbsp;<b>¡¤</b>&nbsp;<a href=<?php echo("$my_url1") ?>> <?php echo("$my_list1")?> </a></b></td></tr>
<tr><td>&nbsp;<b>¡¤</b>&nbsp;<a href=<?php echo("$my_url2") ?>> <?php echo("$my_list2")?> </a></b></td></tr>
<tr><td>&nbsp;<b>¡¤</b>&nbsp;<a href=<?php echo("$my_url3") ?>> <?php echo("$my_list3")?> </a></b></td></tr>

 


<?php
mysql_close($connect);
?>

 

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ¸¸È­º¸´Â ºä¾î ¿¡ °üÇؼ­ 2003-11-19 23:46:13
´ÙÀ½°Ô½Ã±Û ¹®ÀÚ¿­ÃßÃâÇؼ­ ¸µÅ©°É·Á°í Çϴµ¥ ¾ÊµÅ¿ä ¤Ì¤Ì 2003-11-23 00:31:28