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 Quote Link to comment 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 Quote Link to comment 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"> Quote Link to comment 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> "; ?> Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
sandbudd Posted September 24, 2009 Author Share Posted September 24, 2009 www.komets.com/ Quote Link to comment 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/ Quote Link to comment 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> "; ?> Quote Link to comment 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 Quote Link to comment 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> "; ?> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.