sandbudd Posted September 24, 2009 Share Posted September 24, 2009 Trying a href an image generated from the database. this displays the image fine <?php echo "<img src=http://www.entertainfortwayne.com/images/home/".$row_Recordset1['logo'] ."> "; ?> trying to link it to a link Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/ Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 sorry generated from the database in a field called website Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924442 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 think it needs to be something like this but cant get it to work echo '<a href="http://' . $row_Recordset1['website'] . '" target="_blank"> Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924443 Share on other sites More sharing options...
Alex Posted September 24, 2009 Share Posted September 24, 2009 This is more HTML than PHP.. <?php echo "<a href='{$row_Recordset1['website']}'><img src=http://www.entertainfortwayne.com/images/home/".$row_Recordset1['logo'] ."></a> "; ?> Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924445 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 AlexWD that is close but it shows my website then the link in the URL Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924451 Share on other sites More sharing options...
Alex Posted September 24, 2009 Share Posted September 24, 2009 What's an example of what the website row in the database contains? Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924452 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 www.komets.com/ Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924453 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 this is the url being displayed http://www.entertainfortwayne.com/www.komets.com/ Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924454 Share on other sites More sharing options...
Alex Posted September 24, 2009 Share Posted September 24, 2009 Just add http:// in front of what I posted before. <?php echo "<a href='http://{$row_Recordset1['website']}'><img src=http://www.entertainfortwayne.com/images/home/".$row_Recordset1['logo'] ."></a> "; ?> Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924457 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 that did it...getting tired major kuddos Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924465 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 sorry one more question...did this jumps to blank but is showing border? <?php echo "<a href='http://{$row_Recordset1['website']}' target='_blank' border='0'><img src=http://www.entertainfortwayne.com/images/home/" .$row_Recordset1['logo'] ."></a> "; ?> Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924469 Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 <?php echo "<a href='http://{$row_Recordset1['website']}' target='_blank'><img border='0' src=http://www.entertainfortwayne.com/images/home/" .$row_Recordset1['logo'] . "></a> "; ?> duh Link to comment https://forums.phpfreaks.com/topic/175420-solved-a-href-image/#findComment-924470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.