Jump to content

newtothis

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by newtothis

  1. 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.

  2. 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?

  3. 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

     

  4. 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...