php - how to send parameters from one module to another module in joomla -


what did installed flexi custom code module use php in joomla website, created new database rather joomla database , put code below connected , gave results.

$rows = $result->num_rows;    // find total rows returned database if($rows > 0) {     $cols = 3;    // define number of columns     $counter = 1;     // counter used identify if need start or end row     $nbsp = $cols - ($rows % $cols);    // calculate number of blank columns      $container_class = 'container-fluid';  // parent container class name     $row_class = 'row';    // row class name     $col_class = 'col-sm-4'; // column class name      echo '<div class="'.$container_class.'">';    // container open     while ($item = $result->fetch_array()) {         if(($counter % $cols) == 1) {    // check if it's new row             echo '<div class="'.$row_class.'">';    // start new row         }                      $jid=$item['jid'];                 $jdesc = $item['jdesc'];                     $duration=$item['duration'];                      $jobtitle=$item['jobtitle'];  echo ('<div class="'.$col_class.'">'.'<h3>'.'<a href="showjob?jid=' . $jid .    '  ">' .$jobtitle . '</a>' .'</br>'.$jdesc.'<br/>'.$duration.'</h3>'.'<h5>'.$item['name'].'</h5></div>');  if(($counter % $cols) == 0) { // if it's last column in each row counter remainder 0             echo '</div>';   //  close row         }         $counter++;    // increase counter     }     $result->free();     if($nbsp > 0) { // adjustment add unused column in last row if exist         ($i = 0; $i < $nbsp; $i++)  {              echo '<div class="'.$col_class.'">&nbsp;</div>';                 }         echo '</div>';  // close row     }     echo '</div>';  // close container } ?>  <?php $conn->close(); ?> 

it created database connection , gave results results want send parameters other module show results how can send parameters 1 module another, want id value module while clicking link

i solved this, problem link sending page saving cache, installed cache manager plugin , added particular page don't want save cache.so problem solved, can send parameter joomla module module easily.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -