I know this doesn't make sense here: Print "<img src=" ".$info['Picture'] ." " width="140"><br>"; I'm trying to Print from MySQL an image url. I get a blank page. How can I revise it so that I will be able to do this? I'll have a form so people can submit the URL, and I want it do display with all the other information (text). One more thing. I plan to have a login system, based on MySQL. Each user will have a unique ID. When they log in, they need to have a profile and edit it. How can I set up the PHP/MySQL so that when the user logs in, it will read the unique ID for the user? Thanks
You should use: <img src="<?php echo $info['Picture']; ?>" width="140"><br> You can use that inside your HTML as long as the page has a php extension and your php gets the data for that variable before it gets to that line.
or other: 1. echo "<img src='$info[Picture]' width='140'><br />"; 2. printf("<img src='%s' width='140' ><br />",$info['Picture']); or without quotes echo "<img src=$info[Picture] width=140><br />"
since html use " instead of ' the code should be Print "<img src=\"".$info['Picture'] ."\" width=\"140\"><br>"; PHP: