simple code
Posted: Thu Oct 13, 2005 3:51 am
i have a link
<a href="page.php?uid={$_row[user_id]}..............
my problem or query is how can i use that pass value ie data passed through uid ...for comparing ...
ie in page.php
i want select one thing when uid =1...
and some thing other when uid=2...and so on
i used 2 logic
if ($_GET[uid])==1)
select.....
and
$va=$_GET[uid]
if (va==1)
select ...
else
but i fail in both
it says undefined variable uid....
how can i do it?
<a href="page.php?uid={$_row[user_id]}..............
my problem or query is how can i use that pass value ie data passed through uid ...for comparing ...
ie in page.php
i want select one thing when uid =1...
and some thing other when uid=2...and so on
i used 2 logic
if ($_GET[uid])==1)
select.....
and
$va=$_GET[uid]
if (va==1)
select ...
else
but i fail in both
it says undefined variable uid....
how can i do it?