![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 145 Pomógł: 1 Dołączył: 12.07.2006 Ostrzeżenie: (10%) ![]() ![]() |
Witam, dotychczas miałem stare adresy typu index.php?strona=wiadomosci&id=66
poprzez funkcje get pobierałem dane z bazy po przez zapytanie
w wyniku czego miałem tytuł opis itp. Obecnie poprzez mod rewrite zmieniłem adresowanie na wiadomosci-id66.html jak mam teraz pobrać z adresu nr 66 ? |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 332 Pomógł: 6 Dołączył: 13.01.2005 Ostrzeżenie: (0%) ![]() ![]() |
Mod Rewrite?
Kod RewriteRule ^([^./-]*)-([^./0-9]*)([0-9]*)\.html$ index.php?strona=$1&id=$2 albo substr, strpos, preg_match itp... Ten post edytował Wave 18.06.2010, 13:12:50 |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 145 Pomógł: 1 Dołączył: 12.07.2006 Ostrzeżenie: (10%) ![]() ![]() |
Wave to co napisałes to ja juz mam. w pliku .htaccess
Problem mam z pobraniem danych z bazy SQL by po tym numerze 66 pobrac dane , jaka funkcja z nowego adresu pobrac te 66 bo chyba nie poprzez GET |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 471 Pomógł: 89 Dołączył: 29.07.2008 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
po to jest mod_rewrite zebys mogl dalej brac ten id przez GET
|
|
|
![]()
Post
#5
|
|
![]() Grupa: Zarejestrowani Postów: 332 Pomógł: 6 Dołączył: 13.01.2005 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 145 Pomógł: 1 Dołączył: 12.07.2006 Ostrzeżenie: (10%) ![]() ![]() |
Czyli jak mam pobrać nr 66 z adresu wiadomosci-id66.html ?
|
|
|
![]()
Post
#7
|
|
![]() Grupa: Zarejestrowani Postów: 332 Pomógł: 6 Dołączył: 13.01.2005 Ostrzeżenie: (0%) ![]() ![]() |
$_GET['id'] ?
myśleć trochę. |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 03:02 |