Results 1 to 2 of 2

Thread: [RESOLVED] Dynamic Hyperlink (JOOMLA Component)

  1. #1

    Thread Starter
    Lively Member nasTone's Avatar
    Join Date
    Aug 2006
    Location
    South Beloit, IL
    Posts
    74

    Resolved [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.

  2. #2

    Thread Starter
    Lively Member nasTone's Avatar
    Join Date
    Aug 2006
    Location
    South Beloit, IL
    Posts
    74

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width