PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old December 30th, 2008, 07:30 AM
toyzonline toyzonline is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2008
Posts: 1 toyzonline User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 35 sec
Reputation Power: 0
Red face Need Some Help With Embedded Code in OSC

Hi there,

I have 2 issues of embedded coding that i need to pay attention to:

1) The first is related to the product info. On the product preview and the full product display there is some text stating Model ID. I dont want this in either instance but cannot find the correct code to remove.

For an example please visit
Code:
www.raunchyrags.co.uk/index.php?manufacturers_id=34
and note the the model ID, then if you click on one fo the items the model ID actuyally changes? I need to remove both instances of this.

2) The second I have addressed previously but am now doing in a more formatted detail. My website is based on a template, from which i cannot recall where from and there is no code snippets to confirm within the website. The issue I have is the left column is basically 2 menus (brands & Catagories). I want to use the oprion of a drop down menu for the brands as there are too many for the current format.

I have used the admin to alter this but it does not work, I have since found the embedded code that is causing this but do not know how to change this. When removed the whole menu is removed. The code is located in the header.php and is as follows:



PHP Code:
<?   // ---- MANUFACTURERS STRING OUTPUT


  
$manufacturers_query tep_db_query("select manufacturers_id, manufacturers_name from " TABLE_MANUFACTURERS " order by manufacturers_name");
  if (
$number_of_rows tep_db_num_rows($manufacturers_query)) {
      
      
$manufacturers_array = array();
      while (
$manufacturers tep_db_fetch_array($manufacturers_query)) {
        
$output .= $output '<tr><td height=1></td></tr>' '';             
        
$output .= '<tr><td><img src=images/m12.gif width=19 height=19></td><td bgcolor=#E7DCCB width=220 height=19 class=ch5><a class=ml2  href=';
        
$manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' $manufacturers['manufacturers_name']);
        
$output .= tep_href_link('index.php''manufacturers_id='.$manufacturers['manufacturers_id']). '>'.$manufacturers_name;
        
$output .= '</a></td></tr>';
      }

    echo 
$output;
  }

?>


I would appreciate any help offered on these coding issues

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Need Some Help With Embedded Code in OSC


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek