Jump to content

require_once Frame border problem?!


IOAF

Recommended Posts

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:

[code]
<?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>[/code]

Can anyone help point out where im going wrong here?

Help is much apriciated :)

Thanks!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.