Jump to content

Trying to add a dynamic hyperlink


tszuta

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.