This is a discussion on Adding to a string in PHP???? within the Coding Help forums, part of the Webmaster Help category; I have the below code and want to add '../' just before the link, how can i do this, i've ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I have the below code and want to add '../' just before the link, how can i do this, i've tried string replace but no luck!?? The whole link is in a string before being saved to the DB. What i have: Code: <img src="images/image1.jpg"/> Code: <img src="../images/image1.jpg"/> |
| |||||
| did you try: PHP Code: |
| |||||
| Nope didn't work! There is text and code before and after this line if that makes any difference?? |
| |||||
| it shouldn't as str_replace is very good at doing this kind of job. show us the code, you are probably missing something.
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| |||||
| I got it, the code i was using and the code you game me was fine, i just had 2 characters reversed in a variable name! I feel so stupid! |
| |||||
| lol. take a break. |
| Tags |
| adding, php, string |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP, OOPS! data typing | Mike | Coding Help | 2 | 24-08-2007 02:44 PM |
| PHP mySQL Problem!? | ziycon | Server / Technical Administration Tips and Queries | 1 | 15-07-2007 08:31 PM |
| Simple PHP Breadcrumb Script? | ButtermilkJack | Coding Help | 4 | 17-03-2007 06:50 PM |
| PHP string infected with weird characters. | littleBird | Coding Help | 5 | 10-03-2007 09:19 AM |
| WTF - Some PHP Obfuscation. | daviddoran | General Chat | 8 | 20-02-2007 05:45 PM |
| ||||||||
| | ![]() | |||||||