tszuta Posted June 25, 2009 Share Posted June 25, 2009 First, I would like to mention that I know some of the PHP basics. That is about it. Please take it easy on me. I am looking for some help. I would like to add a dynamic hyperlink to something that I am working on. I am modifying an open source component for JOOMLA (RD-Autos - free). Here is the scenario. There is a variable being pulled from a mySQL database. I would like to add the variable to a string. The string is "http://www.carfax.com/cfm/check_order.cfm?vin=" This string (with variable) would be turned into a hyperlink clickable by the user. The full hyperlink I am after would look something like this: http://www.carfax.com/cfm/check_order.cfm?vin=1FAFP13PXWW206586 Here is the existing unmodified code for this section: <?php if ($this->config->showenginep != 0) { ?> <tr> <td><?php echo JText::_( 'VIN' ); ?></td> <td><div align="center">:</div></td> <td><?php echo $this->items->enginepower; ?></td> </tr> The variable I am trying to work with is $this->items->enginepower Here is a sample page of what I am trying to accomplish. http://ryansusedcarsinc.com/ourvehicles.html?view=detail&id=128 Thank you in advance for your help. I really appreciate it. Link to comment https://forums.phpfreaks.com/topic/163661-trying-to-add-a-dynamic-hyperlink/ Share on other sites More sharing options...
tszuta Posted June 25, 2009 Author Share Posted June 25, 2009 Figured it out. <td><a href="http://www.carfax.com/cfm/check_order.cfm?vin=<?php echo $this->items->enginepower;?>"><?php echo $this->items->enginepower;?></a> Link to comment https://forums.phpfreaks.com/topic/163661-trying-to-add-a-dynamic-hyperlink/#findComment-863563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.