newtothis
-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by newtothis
-
-
Thank you so much davej,
I realize I was still very far from this. Much appreciated.
-
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>
?>
-
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.
-
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?
-
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
-
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:
I only want to display on the browser:
So only what is on the left of “?” should be displayed.
Thanks a lot
-
I think it probably cannot be done with CSS.
May be using PHP. I will restate my question in the PHP forum.
-
Thanks Davej,
How could this be done?
-
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):
I only want to display on the browser:
So only what is on the left of “?” should be displayed.
Thanks a lot
How to display only part of an URL address - Help please thanks
in PHP
Posted
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.