Jump to content

CSS or PHP code for the search result page.


NuwanD

Recommended Posts

simply, when you select the results from DB:

<?php

$x = 0;

while ($results)
{
    if ($x == 0)
    {
        $bgcolor = "black";
        $x++;
    }
    else
    {
        $bgcolor = "white";
        $x = 0;
    }

    echo "<div style='backgroung-color: {$bgcolor};'></div>";
}

?>

Hi aviavi,

 

the following code is the one to get result from DB.

How would i apply Your code to this..??

Thanks for helping me out.Cheers

 

-------------------------------

<?php

  foreach ($this->links AS $link) {

      $fields = $this->fields[$link->link_id];

      include $this->loadTemplate('sub_listingSummary.tpl.php');

  }

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.