Hi, I need to php function which searches for an image in a string and if this image has a set width changes the width to e.g. 250 wide or if the image has no set width it add for at 250. the string might be something like this: <h3>test</h3><br /> <img src="http://mydomain.co.uk/uploads/images/thumbs/53723328.jpg" width="157" align="right" style="margin-left:10px;">THERMAL <br> some text here<br> BEST SELLERS.<br> HTML: Regards, Adam
Hi, Thanks for your reply. I just need width="250" adding to the <img tag or if there is already a width="" then this changing to 250. Regards, Adam
dude you can do it javascript/jquery very easily why do you want to do it in PHP? If you share your php code then I can suggests you more about your problem.
There is currently no code doing this. There is just a field called content in the database which is being printed onto the page.