HTML image with php variable helpz

Soldato
Joined
7 Jan 2007
Posts
10,607
Location
Sussex, UK
What I am trying to do is fetch a row from my db to fill in the name of a picture inside my table but it isn't working.

Can anyone spot the error?
 
Last edited:
Yeh it's my first go at this too!

Where do you learn what to do with stuff inside echo? Like \" for inside speach marks and .$variable.?

I don't know why I have to do these things, just copied from examples until it worked :s
 
Just different way's of inclusion/exclusion (escaping). Some more readable than others but depends on what you're doing as to what is the most appropriate.

Learn through practice. The PHP Manual is an excellent resource/reference.
 
Back
Top Bottom