Jump to content

Recommended Posts

Ok i have slight problem with this line of code i cant figure out how to get this to work correctly without creating a whole new table in my DB which shouldnt be required.

 

http://homes.pacificscene.com/browse/community.php?ID=43

 

I have a community that has to have the word Building in the Place of Model.  Really i didnt see the problem with building or model, but  it needs to be done.

 

<?php

      if($row[0] == '&siteID=43') {
                        print "<td width='135'><strong>Building</strong></td>";
                        print "<td>" . $row[1] . "</td></tr>";
}
else {
                        print "<td width='135'><strong>Model</strong></td>";
                        print "<td>" . $row[1] . "</td></tr>";
}?>

 

Is there a better way to do this? any advice is appreciated

 

Link to comment
https://forums.phpfreaks.com/topic/71090-tag-swtiching/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.