I want to know if we want to dispaly results like this how i do it.
Sample:
Results
1
2
3
4
5
6
this is normal way. I wna to know how I do dispaly like following way
1 2
3 4
5 6
please help me
how do I dispaly results like this
Moderator: General Moderators
I suppose you mean getting the results in a formatted table? There's a lot of info on these boards about this in the "useful posts" topic or if you search the boards.
Otherwise if you just want two results per line.. just use a loop like the following.
Otherwise if you just want two results per line.. just use a loop like the following.
Code: Select all
$i = 0;
while ($whatever)
{
if ($i == 2)
{
echo '<br />' . "\n";
$i = 0;
}
echo $result;
$i++;
}Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.