Jump to content

showing picture from a mysql value (with php)


LostAndConfused

Recommended Posts

Hey guys just real quick, I need to know how to make a url with a part of it being from a mysql value.

 

/* Avatar */

echo "<img src="uploads/".$req_user_info['avatar']." border="0" alt="">"<br><br>";

 

thats the code sofar but obviously i'm doing it wrong since it's giving me errors. Basically $req_user_info['avatar'] will be the file name and tag so I need to somehow connect that with "uploads/" to make the link for where the picture is. Does that make since? I just don't know how to connect a string to a value in php...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.