how can I use isset values?
Posted: Tue May 19, 2009 7:27 pm
Can you guys explain me what does this mean?
And how can I use this values, give me as much opinios as you can.
I want to know how can I use a value when is isset($_GET, is_numeric($_GET, $_GET and null.
one example would be
Thank you..
Code: Select all
$cat = isset($_GET['subject']) &&
is_numeric($_GET['subject'])?$_GET['subject']:null;
$prod = isset($_GET['menu']) && is_numeric($_GET['menu'])?$_GET['menu']:null;
$menu_type = isset($_GET['menu_type']) && is_string($_GET['menu_type'])?$_GET['menu_type']:null
I want to know how can I use a value when is isset($_GET, is_numeric($_GET, $_GET and null.
one example would be
Code: Select all
$class = !is_null($cat) && $cat==$row['id']?' class="selected"':''