Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

POMOCY - problem z przekazywaniem wartości

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
chemiqs
Smarty n00b


Joined: 08 Oct 2012
Posts: 1

PostPosted: Mon Oct 08, 2012 1:31 pm    Post subject: POMOCY - problem z przekazywaniem wartości Reply with quote

hej

od razu napisze - bo moze to jest istotne - ale skrypt sklada sie z tak jakby panelu bocznego (menu kategorii ogloszen). jest on generowany z zapisów w bazie danych i ładowany jest w nagłówku skryptu.

strona smarty o która mi chodzi jest ładowana obok kategorii - wyswietla po prostu ogłoszenia z konkretnie wybranej kategorii.

chce zrobic sortowanie na liscie ogłoszeń.
Wymyslilem sobie ze w pliku smarty zrobie cos takiego:
Code:
<div><a href="kategoria.php?kid={$kategoria}&sort=data">.</a></div>


w pliku php mam cos takiego:
Code:

if ($_GET['sort']==1)
            {
            $tab_ogloszenia=$DB->execute('SELECT  ....');
            }else {
             $tab_ogloszenia=$DB->execute('SELECT  ...');
            }
         $s->assign('kategoria',$kategoria);


Kategoria pieknie mi przechodzi z php -> smarty
ale juz odwrotnie SORT nie przechodzi ze smarty->php.

co moze byc przyczyną takiego faktu.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP