user4fun Posted July 5, 2007 Share Posted July 5, 2007 Tablecolumn 1 = WebsiteColumn 2 = LlineFirst row Website = www.Mydomain.comFirst row Lline = /image/myimage.jpgi need the code that would display an image using Website and Lline to formwww.Mydomain.com/image/myimage.jpgthis is what i have so farecho '<td><img src="http://' . $row["Website"] . $row["Lline"] . '" width="50" height="30" /></td>'; Link to comment Share on other sites More sharing options...
justsomeguy Posted July 5, 2007 Share Posted July 5, 2007 You keep posting this. If $row['Website'] contains "www.Mydomain.com", and if $row['Lline'] contains "/image/myimage.jpg", then that code will create the link correctly. There's nothing wrong with the code. Link to comment Share on other sites More sharing options...
user4fun Posted July 5, 2007 Author Share Posted July 5, 2007 Can you think as to why the properties of the image is onlyhttp:///and the best i ever got was http://www.Mydomain.com Link to comment Share on other sites More sharing options...
user4fun Posted July 5, 2007 Author Share Posted July 5, 2007 My column in the table is Website$row['Website'] Shows no resultsBUT$row['website'] Shows www.mydomain.comthis is what i have so far to get the results for the iamge property to behttp://www.mydomain.com echo "<td><img src=\"http://" . $row['Website']."/".$row['Lline'] . "\" width=\"50\" height=\"30\"></td>"; Link to comment Share on other sites More sharing options...
justsomeguy Posted July 5, 2007 Share Posted July 5, 2007 Use print_r($row) to see what the values are. Use the ones that have the values you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.