클릭통계리포트를 만들고 싶습니다.
그런데 저번에 그런글을 올리니 밑에 코드를 집어넣으면 된다고 답변을 주셨는데
저코드를 어디에 어떤위치에 집어넣는거죠?
제가 완전 php 초보인데 필요한거라서 ㅜㅜ
[code]
<?
$connect=mysql_connect("localhost","xxxx","xxxx");
$mysql=mysql_select_db("xxxx",$connect);
$Sql = " select * from `count` where `pro_name` = 'free_today' ";
$result2=mysql_query($Sql);
while($pro=mysql_fetch_array($result2))
$pro_count = $pro[pro_count];
$pro_countup = $pro_count+1;
if ( $mode == "clickup" )
{
$pro_name = $_GET[free_today];
$Sql = " update count set `pro_count` = '$pro_countup' where `pro_name` = 'free_today' ";
mysql_query($Sql);
}
?>
<a href="#1" OnClick="<script language='javascript'>window.location.href="?mode=clickup&pro_name='게시물 코드'";</script>"<?=$on[on_text]; ?></a>
[/code]
그런데 저번에 그런글을 올리니 밑에 코드를 집어넣으면 된다고 답변을 주셨는데
저코드를 어디에 어떤위치에 집어넣는거죠?
제가 완전 php 초보인데 필요한거라서 ㅜㅜ
[code]
<?
$connect=mysql_connect("localhost","xxxx","xxxx");
$mysql=mysql_select_db("xxxx",$connect);
$Sql = " select * from `count` where `pro_name` = 'free_today' ";
$result2=mysql_query($Sql);
while($pro=mysql_fetch_array($result2))
$pro_count = $pro[pro_count];
$pro_countup = $pro_count+1;
if ( $mode == "clickup" )
{
$pro_name = $_GET[free_today];
$Sql = " update count set `pro_count` = '$pro_countup' where `pro_name` = 'free_today' ";
mysql_query($Sql);
}
?>
<a href="#1" OnClick="<script language='javascript'>window.location.href="?mode=clickup&pro_name='게시물 코드'";</script>"<?=$on[on_text]; ?></a>
[/code]
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기