Jump to content


Photo

require_once Frame border problem?!


  • Please log in to reply
2 replies to this topic

#1 IOAF

IOAF
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 17 March 2006 - 04:11 AM

Hi, im setting up a new site with an online store with php and msql. I have built the template into the php from [a href=\"http://www.phpwebcommerce.com/\" target=\"_blank\"]http://www.phpwebcommerce.com/[/a] and everything works fine. However im having problems with a frame border and im unsure how to remove it.

With html or css i would usually use border="0" or {border:0;} but as the frame is made from the require_once function im unsure what to use here.

Ive tried CSS on the main page and the page the require_once is targeted at to remove the border with no sucsess, and also the tables with the require_once php set to border="0"

Here is my coding for the main page:

<?php
require_once 'library/config.php';
require_once 'library/category-functions.php';
require_once 'library/product-functions.php';
require_once 'library/cart-functions.php';

$_SESSION['shop_return_url'] = $_SERVER['REQUEST_URI'];

$catId  = (isset($_GET['c']) && $_GET['c'] != '1') ? $_GET['c'] : 0;
$pdId   = (isset($_GET['p']) && $_GET['p'] != '') ? $_GET['p'] : 0;

require_once 'include/header.php';
?>
<style type="text/css">
table 
{
border: 0px;
}
frame{
border: 0px;
} 
</style>

<body bgcolor="f0f0f0" text="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<center>

<table border="1" align="center" cellpadding="0" cellspacing="0" width="760" style="border:0px;">
  <tr> 
    <td colspan="5" border="0" width="760"> 
      <?php require_once 'include/top.php'; ?>
    </td>
  </tr>
  </table>
  
  <table border="1" align="center" cellpadding="0" cellspacing="0" width="760" height="400">
  <tr> 
    <td colspan="5" border="0" width="13" background="../images/site_08.gif"></td>
    
    <td colspan="5" border="0" width="135" bgcolor="#FFFFFF" id="leftnav">
    <?php require_once 'include/leftNav.php'; ?>
    </td>
    
    <td colspan="5" border="0" width="464" bgcolor="#FFFFFF">
    <?php
if ($pdId) {
    require_once 'include/productDetail.php';
} else if ($catId) {
    require_once 'include/productList.php';
} else {
    require_once 'include/categoryList.php';
}
?>
    </td>
    
    <td colspan="5" border="0" width="113" bgcolor="#FFFFFF">
    <?php require_once 'include/miniCart.php'; ?>
    </td>
    
    <td colspan="5" border="0" width="15" background="../images/site_11.gif"></td>
    
  </tr>
  </table>
  <table>
      <tr> 
    <td colspan="5" background="../images/site_12.gif" width="760" height="39"> 
      
    </td>
  </tr>
</table>
</center>

Can anyone help point out where im going wrong here?

Help is much apriciated :)

Thanks!

#2 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 17 March 2006 - 04:55 AM

You're not making much sense bud..

<table border="1" align="center" cellpadding="0" cellspacing="0" width="760" style="border:0px;">


?? is that what you're talking about?

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#3 IOAF

IOAF
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 17 March 2006 - 05:02 AM

Ok, spotted the problem *insert embarasment here*

sorry guys lol




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users