![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| ||||
| ||||
|
|
I added the two sets of links so the differences can be seen between working (top) and failing (bottom). When the problem is solved only one version will remain in the end script. |
|
What you see with the %20 version is when it works and the other - version when it fails and gives the equivalent of an error page, it tries to find say Crazy-Frog and fails, that is the problem how do I get this script to recognise Crazy-Frog in place of Crazy Frog (or Crazy%20Frog, Crazy+Frog). |
|
This bit- $trimcat=$aname; if (strlen($trimcat)>24){ $trimcat=substr($trimcat,0,21) . $dot;} if ($aname==$cat){ echo'<strong>'.$trimcat.'</strong> |';} else{ Is responsible for the strong text, so if $aname==$cat it prints a trimmed version (1st 21 characters) of the category name minus the link code. Pretty sure this isn't part of the problem per se. |
|
The reason the hyphenated version isn't bold is because $aname==$cat isn't the same Crazy Frog ($aname) is not the same as Crazy-Frog ($cat). Or I have no idea what you are asking about ![]() |
#12
| |||
| |||
|
|
Trying to convert a script to use friendly URLs, I've done this before, but my PHP skills are basic so I'm not great at PHP. |
#13
| |||
| |||
|
|
On Mon, 23 Oct 2006 03:15:32 GMT, David seodave (AT) search-engine-optimizat...es (DOT) co.uk> wrote: Trying to convert a script to use friendly URLs, I've done this before, but my PHP skills are basic so I'm not great at PHP. Managed to solve the main problem- http://www.temphelpwnc.com/Real-Musi.../Crazy-Frog/1/ working now :-) Only minor issues left now. |
![]() |
| Thread Tools | |
| Display Modes | |
| |