Jump to content

help with syntax


dflow

Recommended Posts

how do i echo inside the switches?

$CatgeoryID=$row_RsProductInfo['CategoryID'];
switch ($CatgeoryID)
{
    case 1:
echo"	  <a href="index.php" class="product-title">
      
      
      <?php echo $row_RsCity['CityName']; ?> <?php echo $row_RsProductInfo['UnitPrice']; ?><?php echo $row_RsCurrencies['Symbol']; ?> </a>";
        break;
       case 1:
echo"	  <a href="index.php" class="product-title">
      
      
      <?php echo $row_RsCity['CityName']; ?> <?php echo $row_RsProductInfo['UnitPrice']; ?><?php echo $row_RsCurrencies['Symbol']; ?> </a>";
        break;

}   

Link to comment
https://forums.phpfreaks.com/topic/185785-help-with-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.