troubleshooting Question

PHP show image based on value in mysql Database and the image folder #raspberrypi

Avatar of James Murrell
James MurrellFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHPHTML
10 Comments1 Solution125 ViewsLast Modified:
Hi hope you can help last year this worked this year it is not: upgrade php i think

my php code is

<img class=polaroid  height=70 src=../images/drivers/".SUBSTR($_SESSION['Driver1'],0,4).".jpg/>

the html view score is

 <img class=polaroid  height=70 src=../images/drivers/ 3  .jpg/>


what i need is

 <img class=polaroid  height=70 src=../images/drivers/3.jpg/>

no spaces in the end part hope you guys can help. this is for a free fantasy F1 league i do with friends


I forgot to mention the images ref is stored in database like "3   Nico ROSBERG"
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros