|
-
Jun 25th, 2009, 12:48 PM
#1
Thread Starter
Lively Member
[RESOLVED] Dynamic Hyperlink (JOOMLA Component)
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_orde...FP13PXWW206586
Here is the existing unmodified code for this section:
HTML Code:
<?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/ourvehic...=detail&id=128
Thank you in advance for your help. I really appreciate it.
-
Jun 25th, 2009, 01:35 PM
#2
Thread Starter
Lively Member
Re: Dynamic Hyperlink (JOOMLA Component)
<td><a href="http://www.carfax.com/cfm/check_order.cfm?vin=<?php echo $this->items->enginepower;?>"><?php echo $this->items->enginepower;?></a>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|