Okay, maybe this isn't the best or most practical or nicest solution, but at least it works and at least I have a solution. Lateron, I'm gonna work on improving the whole code and I'll keep looking for the best solution.
For now, I just wanted to share the solution with you ^.^
PHP Code:
<?php
while($item=mysql_fetch_array($finalQuery)){
$base_m=5;
if ($item['col1'] > "0") {$item['col1'] = round ((($item['col1']+5) *1.85),0); $item['col01'] = $base_m*(ceil(($item['col1'])/$base_m)); }
if ($item['col2'] > "0") {$item['col2'] = round ((($item['col2']+5) *1.85),0); $item['col02'] = $base_m*(ceil(($item['col2'])/$base_m)); }
>?
// if you want, you can add what it should display by using the else statement. In this case, it just doesn't display anything
<td width="50%" align="center"><h4><?php echo "{$item['col01']}?></h4></td>
<td width="50%" align="center"><h4><?php echo "{$item['col02']}?></h4></td>
Thx for trying to help. And if anybody have any other suggestions, lemme know!
Bookmarks