Jump to content

newtothis

Members
  • Posts

    10
  • Joined

  • Last visited

newtothis's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi everyone, I see there are few ways to go around this problem. Thank you very much to all of you who have given me some help. This is much appreciated.
  2. Thank you so much davej, I realize I was still very far from this. Much appreciated.
  3. Sorry I had to post again. I had a smily face in the code. <?php <a href=”$ firms-> firmurladdress ”> If (strops(“$ firms-> firmurladdress ”,”?”);=0) < $firms->firmurladdress ></a> Else <substr(“$firms->firmurladdress”,0, strops(“$ firms-> firmurladdress”,”?”); ) ;></a> ?>
  4. Thanks a lot Ingolme, It is a very big help. I have re-written the code following your remarks, I think this time is better: <?php <a href=”$ firms-> firmurladdress ”> If (strops(“$ firms-> firmurladdress ”,”?”);=0) < $firms->firmurladdress ></a> Else <substr(“$firms->firmurladdress,0, strops(“$ firms-> firmurladdress”,”?”);></a> ?> Thanks again, much appreciated.
  5. I have written the code. It is probably not that good. I am a newbie so be kind. Thank a lot of your help, <? <a href=”<? $ firms-> firmurladdress ?>”> <? If (strops(“<?$ firms-> firmurladdress ?>”,”?”);=0;?> <?= $firms->firmurladdress?></a> <? Else: ?> <? substr(“<?$firms->firmurladdress?>,0, strops(“<?$ firms-> firmurladdress?>”,”?”));</a> <? endif; ?> ?> Would that be OK?
  6. Thanks a lot davej, This is very helpfull. I will try to write the code using these functions and will publish the code here for any potential correction. Best regards
  7. Hello guys, I hope it is the right forum for this question. My apologies if it is not. Any help would be handsome. I have a web link extracted from a data base and I just want to display the left part of the URL before a specific character (?). I am looking for some PHP code for this. Has anyone an idea of the simplest way to do it using PHP code? The HTML code is: <a href=”<? $ firms-> firmurladdress ?>”><?= $firms->firmurladdress?></a> Instead to display: http://www.oxfordlane.com?EM= I only want to display on the browser: http://www.oxfordlane.com So only what is on the left of “?” should be displayed. Thanks a lot
  8. I think it probably cannot be done with CSS. May be using PHP. I will restate my question in the PHP forum.
  9. Hello guys, Any help would be handsome. I have to create a web link extracted from a data base and I just want to display the left part of the URL before a specific character (?). I am looking for the CSS code for this. Has anyone an idea of the simplest way to do it using CSS code. Example: CSS code should be in the form: . firmurladdress { …} ? The HTML code is: <a href=”<? $ firms-> firmurladdress ?>”><?= $firms->firmurladdress?></a> Instead to display (the exact content of the field in the database): http://www.oxfordlane.com?EM I only want to display on the browser: http://www.oxfordlane.com So only what is on the left of “?” should be displayed. Thanks a lot
×
×
  • Create New...