- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
Hi I have a simple code below that fetches, make, model and year from the database, but for some weird reason I get: Fatal error: Cannot access protected property error, any ideas as to why this might be happening? (i btw have this code on a different server running with … | |
Hi We are moving from one shopping cart to new one. we have about 4500 product links. is there anyway to make a general to move domian.com [url]http://www.domain.com/SearchResults.asp?Search=1234-111&Extensive_Search=Y[/url] to domain.com/search/q=1234-111 I don't really care about the -1111 (last 4) is there anyway to make this dynamic so I don't have … | |
Hi I am trying to get the active state for my foreach loop for my magento site. I have have tried everything, but it just wont work.. here is my code: ksort($catArr); foreach($catArr as $postion=>$catId){ $_category = Mage::getModel("catalog/category")->load($catId); ?> <?php if($_category->getIsActive() ) { $caturl = $_category->getURL(); $catname = $_category->getName(); ?> … | |
Hi We have moved our site with a new system with a new structure. the domain is the same just structural changes, and I cant seem to get the htaccess right. Here is what i am trying to accomplish: move this: [B][url]http://www.domain.com/chairs/519.htm[/url][/B] to: [B][url]http://www.domain.com/catalogsearch/result/?q=519[/url][/B] we have over 5000 links so … | |
Hi i have a foreach loop, but it is just showing everything in one long line, so I wanted to put it in a table like this <table> <tr> <td>data1</td> <td>data2</td> <td>data3</td> </tr> <tr> <td>data4</td> <td>data5</td> <td>data5</td> </tr> </table> here is my loop: [CODE]<?php foreach( $products as $product ) { … | |
Re: hahah ofcourse! thanks for the code though, it works like a charm :) -Damon Tavangar | |
Hi I have added the following code to my htaccess : RewriteEngine On Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301] the above rule just makes the url mor SEO friendly so for example home.php will become home, BUT when I have a … | |
Hi I have added the following code to my htaccess : RewriteEngine On Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301] the above rule just makes the url more SEO friendly so for example [url]www.domain.com/home.php[/url] will become [url]www.domain.com/home[/url] BUT when I have a … | |
Hi I have the following array: [CODE] $links = array("Home", "About us", "Our Services"); foreach($links as &$link ){ $space = implode(" ", $links); echo $space ; break; } [/CODE] the above code displays Home About us Our Services, but now I want to use the same array for links so … ![]() | |
Hi everyone, I have designed my website from 6000 static HTML pages to a more structured system. However I am not carrying over same structure so I will need to setup a bunch of 301 permanent redirects in order to keep my search rankings. (have spent a lot of money … | |
Hi everyone! Thanks for reading my post. I have 2 questions, first I have a PHP site where it reads the pages from a folder and shows it in a php frame, for example the contact us page with the file name of contact.php will be shown as http://www.<DOMAIN>?page=contact. and … | |
Re: Hi There is 5 steps to this. here they are. good luck :) 1. connect to mysql 2.select the db 3.run mysql query 4.user data return 5. close database connection. | |
Hi How can I rewrite the following to get it to work: <?php if ($_product->getsub()) { echo '[COLOR="Red"]<a href="ref="http://test.com/-<?php echo $this->htmlEscape($_product->getData('key_code')); ?>.html">[/COLOR]<li style="width:120px; margin-left:auto; margin-right:auto; margin-top:20px;" class="nav-rsvp-package">subscribe</li> the problem is that i have [COLOR="Red"]<?php echo $this->htmlEscape($_product->getData('key_code')); ?>.html">[/COLOR] inside another [I]<?php[/I] snippet. I already tried: [CODE] <a href="ref="http://test.com/-<?php echo $this->htmlEscape($_product->getData('key_code')); ?>.html"> … |
The End.