Current location: Hot Scripts Forums » Programming Languages » PHP » creating a column for ads


creating a column for ads

Reply
  #1 (permalink)  
Old 10-10-03, 09:30 AM
dxoxb dxoxb is offline
Newbie Coder
 
Join Date: Oct 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
creating a column for ads

I have installed a link farm and was trying to install a colume for banners. The problem is instead of adding just a column, some how I also added a row (Please see http://anhance.com/ussfta)

The original of the table is
if($colcount == 3){
$num_rows % 3 ? $num_rows += 1 : $num_rows;
$num_rows % 3 ? $num_rows += 1 : $num_rows;
$rows = $num_rows / 3;
$rows2 = ($rows * 2);

$html = $main_table . "<tr>\r\n\t\t\t<td ";
$html .= "width=\"33%\" valign=\"top\" class=\"maincats\" ";
$html .= "nowrap=\"nowrap\" align=\"left\">";
$html .= build_cat("0", $rows, $PID);
$html .= "\r\n\t\t\t</td>\r\n\t\t\t<td width=\"33%\" valign=\"top\" ";
$html .= "class=\"maincats\" nowrap=\"nowrap\" align=\"left\">";
$html .= build_cat($rows, $rows, $PID);
$html .= "\r\n\t\t\t</td>\r\n\t\t\t<td width=\"34%\" valign=\"top\" ";
$html .= "class=\"maincats\" nowrap=\"nowrap\" align=\"left\">";
$html .= build_cat($rows2, $rows, $PID);
$html .= "\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t</table>\r\n\r\n";

echo table("100%", "center", "", $html);
}

The code that I have amended is
if($colcount == 3){
$num_rows % 3 ? $num_rows += 1 : $num_rows;
$num_rows % 3 ? $num_rows += 1 : $num_rows;
$rows = $num_rows / 3;
$rows2 = ($rows * 2);

$html = $main_table . "<tr><td>";
include("include/sideleftcol2.php");
$html .="</td>";
$html .= "\r\n\t\t\t<td ";
$html .= "width=\"33%\" valign=\"top\" class=\"maincats\" ";
$html .= "nowrap=\"nowrap\" align=\"left\">";
$html .= build_cat("0", $rows, $PID);
$html .= "\r\n\t\t\t</td>\r\n\t\t\t<td width=\"33%\" valign=\"top\" ";
$html .= "class=\"maincats\" nowrap=\"nowrap\" align=\"left\">";
$html .= build_cat($rows, $rows, $PID);
$html .= "\r\n\t\t\t</td>\r\n\t\t\t<td width=\"34%\" valign=\"top\" ";
$html .= "class=\"maincats\" nowrap=\"nowrap\" align=\"left\">";
$html .= build_cat($rows2, $rows, $PID);
$html .= "\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t</table>\r\n\r\n";

echo table("100%", "center", "", $html);
}
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error when creating database tables with php script spiroth10 PHP 4 01-06-04 03:59 PM
Creating a Search Engine (sort of) upchuck PHP 2 09-14-03 09:22 AM
Creating online catalogue ryk Script Requests 1 09-06-03 10:39 AM
code for creating sub domain in php majumder_sanjay Script Requests 0 09-04-03 06:50 AM
Creating directories and files cobalto2060 PHP 1 08-17-03 03:20 PM


All times are GMT -5. The time now is 06:38 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.