www.lbnutrition.com

Nothing is showing up. I have revised the index.php code plenty of times. I need help of an expert. Much thanks!
------------------------------------------------------------------------------------

<?php
/*
  $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

define('TEXT_MAIN', '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="100%" align="center"><img border="0" src="images/welcome.gif"></td></tr><tr><td width="100%">&nbsp;</td></tr><tr><td width="100%" bgcolor="#0099FF"><table border="0" cellpadding="6" cellspacing="1" width="100%"><tr><td width="100%" bgcolor="#0000FF"><p align="center"><font face="Verdana" color="#FFFFFF"><b><font style="font-size: 8pt">Welcome to Lbnutrition.com - India Premier Online Advanced Sports Nutrition Superstore, an online shopping and information service dedicated to providing you with honest information and purest grade products from well-respected companies.</font></b></font></p><p align="center"><font face="Verdana" color="#FFFFFF"><b><font style="font-size: 8pt">We offer a large selection at great prices as well as experience and dependability you can; count on. Our customers have been saving money by shopping with us since 2002! Please view our large selection of supplements and guaranteed to work combos at great prices.</font></b></font></p><p align="center"><font face="Verdana" color="#FFFFFF"><b><font style="font-size: 8pt">New items are added regularly! Our guaranteed to work combos are up to 75% off Retail Price!</font></b></font></p><p align="center"><font face="Verdana" color="#FFFFFF"><b><font style="font-size: 8pt">You can place an order on our SSL safe server using your credit card or fax your orders at +91-183-5069364. Click on the links below to order or call +91-183-5069364 from 11:00 am to 3:00 pm Indian Standard Time Monday through Friday, 10:00 am to 1:00 pm on Saturday.</font></b></font></p><p align="center"><font face="Verdana" color="#FFFFFF"><b><font style="font-size: 8pt">We do not sell or deal in any Steroids or similar controlled substances which are banned by IOC and similar International Sports Organizations, FDA or Government of India. Feel absolutely free &amp; safe to shop with us!</font></b></font></p></td></tr></table></td></tr><tr><td width="100%"><b><font face="Verdana" size="1">&nbsp;</font></b></td></tr><tr><td width="100%" align="center"><img border="0" src="images/ad1.gif"></td></tr><tr><td width="100%"><b><font face="Verdana" size="1">&nbsp;</font></b></td></tr><tr><td width="100%" align="center"><img border="0" src="images/ad2.gif"></td></tr><tr><td width="100%"><b><font face="Verdana" size="1">&nbsp;</font></b></td></tr><tr><td width="100%" align="center"><img border="0" src="images/ad-3.gif"></td></tr><tr><td width="100%"><b><font face="Verdana" size="1">&nbsp;</font></b></td></tr></table>');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
  define('HEADING_TITLE', 'Product Listing');
  define('TABLE_HEADING_IMAGE', '');
  define('TABLE_HEADING_MODEL', 'Model');
  define('TABLE_HEADING_PRODUCTS', 'Product Name');
  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
  define('TABLE_HEADING_QUANTITY', 'Quantity');
  define('TABLE_HEADING_PRICE', 'Price');
  define('TABLE_HEADING_WEIGHT', 'Weight');
  define('TABLE_HEADING_BUY_NOW', 'Buy Now');
  define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
  define('TEXT_SHOW', '<b>Show:</b>');
  define('TEXT_BUY', 'Buy 1 ');
  define('TEXT_NOW', ' now');
  define('TEXT_ALL_CATEGORIES', 'All Categories');
  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
  define('HEADING_TITLE', 'what\'s New Here');
} elseif ($category_depth == 'nested') {
  define('HEADING_TITLE', '<font face="Verdana" size="3" color="#FFA904">Categories</font>');

}
?>

Try turing PHP errors on, and then repost any errors you get.

Also, you have an if/else statement... on the index.php page, no GET variables are passed, and nowhere in your index.php is the variable $category_depth set. Hence none of the conditions would be satisfied. And even if they were, you're not printing or echoing anything to the browser, hence you would get a blank page.

And a very simple thing to try would be....

echo 'test';

as first thing in your php file after the <?php


R

www.lbnutrition.com

Thanks buddy. Since I'm almost zero in PHP can you let me know what to add and where to add the code to my existing code? Thanks much!

I'll give you pointers, and help with specific questions. But sorry, this is a forum, not a coding house!

Go to PHP.net and lookup "echo" for outputting content to the browser. And perhaps read the basics tutorial about setting variable values.

That should be enough to get you started.

R.

This article has been dead for over six months. Start a new discussion instead.