Re: [PHP] Question re empty query

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ $r = "{$_GET['r']}"; //Set the variable $r to mean the category number for starters WTF is the preceding statement for??? $r is already set if it exists by the expression in the if s

[PHP] Question re empty query

2005-03-09 Thread Jackson Linux
Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ $r = "{$_GET['r']}"; //Set the variable $r to mean the category number $fields = '*'; $sort = "ORDER BY cv.sort"; } else { $where = ''; $fields = 'cv.cv_id,cv.category,dates,cv.job_title,cv.company,cv.