รบกวนสอบถามผู้รู้ด้วยครับ แก้ปัญหา php ไม่ได้ครับ

เริ่มโดย Jacker007, 08 ตุลาคม 2010, 10:55:44

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

Jacker007

รบกวนสอบถามผู้รู้ด้วยครับ
แก้ปัญหา php ไม่ได้ครับ
ผมต้องการแก้ลิงค์ page ครับ
ลิงค์ที่ได้มาเป็นเช่นนี้ แต่ใช้ไม่ได้มันไม่เปลื่ยนหน้า >2 3 ให้ครับ
http://localhost/category16.html?pg=2&page=category&category_id=16
ถ้าแก้ลิงค์เป็น
http://localhost/?pg=2&page=category&category_id=16
มันถึงจะเปลี่ยนหน้า 2 และ 3 ให้

ผมจะต้องแก้ใข code ส่วนไหนครับถึงจะไม่ให้แสดง /category16.html/ ครับ
ส่วนแรก Page:....
<td align="right" class="links"><strong><font class=links>Page:
        <?php $pg->showPaging("", "&page=category&category_id=".$_GET["category_id"]); ?></font></strong></td>

ส่วนที่สอง  Go To Page : :....
<font class=links>Go To Page :
        <?php $pg->showPaging("", "&page=category&category_id=".$_GET["category_id"]); ?></font>&nbsp;<a href="articlerss.php?type=2&category=<?=$_GET["category_id"]?>"><img src="images/rss.jpg" border=0 alt="See As RSS"></a>

ขอบคุณทุกๆท่านล่วงหน้าที่ให้การแนะนำครับ
htaccess
****
RewriteEngine On
RewriteRule ^category(.*).html$ index.php?page=category&category_id=$1 [L]
RewriteRule ^article(.*).html$ index.php?page=article&article_id=$1 [L]
RewriteRule ^(.*).html$ index.php?page=$1 [L]
RewriteRule ^(.*).html$ index.php?menu=$1 [L]
RewriteRule ^index.html$ index.php

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<Files ~ "\.(inc)$">
  order allow,deny
  deny from all
</Files>
******


[direct=http://imgtab.net/main/view_user_gallery/rogerplus/0]My Gallery รวมรูปภาพดารา ของฉัน[/direct]
[direct=http://c1d82a55.linkbucks.com]แจกหนังสือ 117 อาชีพเกษตรกรรมทางเลือก[/direct]
[direct=http://japanpub.blogspot.com/]Blog 18[/direct]

ohmohm


gootooyoo

โจทย์นี้ ผมไม่แน่ใจนะครับ
/category16.html/ <---
เม็ดตอด $pg->showPaging ตัวบนนะครับ หาตัวหรือคำสั่งที่มัน สร้างไฟล์ category16.html
อะครับ
ขวากหนาม ที่เราต้องข้ามผ่าน ถึงจะเจ็บก็จะไป (\◣_◢/)  [direct=http://gootooyoo.blogspot.com] [/direct]
[direct=http://gootooyoo.blog.com] ❤ [direct=http://free-icons.blogspot.com] ❤  [direct=http://goo-dog.blogspot.com]❤