Re: query strings, global variables
| From: | Matt Matijevich | Date: | Wed, 21 Jan 2004 19:07:56 +0000 |
| Subject: | Re: query strings, global variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-175326@lists.php.net to get a copy of this message | ||
<snip>
while ($row = mysql_fetch_array($selection)){
if (section == $sectionName){
echo "<b>" . $row["sectionName"] . "</b>";
}else{
echo $row["sectionName"];
}
thx
</snip>
Not sure if I understand you 100% but I think you could just either
check the $_GET or $_REQUEST array. Something like this:
if ($_REQUEST['section'] == $sectionName){ //or $_GETT['section'] ==
$sectionName
echo "<b>" . $row["sectionName"] . "</b>";
}else{
echo $row["sectionName"];
}