Jump to content

szkgroove

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by szkgroove

  1. Now i have this rule Options +FollowSymlinks RewriteEngine on RewriteRule ^([^/\.]+)/?$ product.php?id=$1& IndexOptions -FancyIndexing But server does not return URL in real time, but when I change manually url to desired it returns correct page when i type 127.0.0.1/19830-PRODUCT-NAME it works when I use link it returns 127.0.0.1/cms/product.php?id=19830&PRODUCT-NAME What am I missing ???
  2. I am not familiar with mod_rewrite at all, as I know I can change URL using htaccess bu can not figure how to do that so I appreciate if anybody can help me with expression that should be placed in htaccess. My current URL is 127.0.0.1/cms/product.php?id=19830&PRODUCT-NAME I woul like to make it like this 127.0.0.1/id-19830/PRODUCT-NAME Thanks
  3. Hello, Need help with creating seo url using php, I have cattegory list on page cat.php where I generate URL using this code: <a href="item.php?id=<?=$values[$i]['itemid']?>&<?=$values[$i]['itemname']?> As result I get what I want but with bunch of spaces that creates URL with lots of %20 I would like to replace %20 with dash I can not use mod_rewrite since there is unknown amount of spaces so I need to do it using php. For one item there are 4 links and I should do it separate for all 4 links so it would be good if there is any way to modify this line of code or put some code right before it so it points just for that link Thanks
  4. Hello, I have product page that returns url like this 127.0.0.1/page/pitem_buy.php?id=12559 How can I, using PHP get more data in URL like product name. I do not need rewrite or SEO friendly URL, just need beside id, product name in any format. I appreciate any help, thanks
  5. Hello I have 2 MySQL databases on the same server with same structure and same data. Occasionally data in one database are changed for 7 days and then should be back to the same value as in first database. Through PhpMyAdmin I am trying to write statement that should do thi but something I am missing. I have databases: db1_local and db2_local Table gitem column gbaseprice (should be synchronized from db1 to db2) column gitemcode (has same value in both databases and synchronizing should be followed with this parameter so that id's don't mess up) Appreciate any help Here is statement e.g. SQL statement that run in db2 UPDATE gitem SET gbaseprice=db1_local.gbaseprice FROM db1_local.gitem(`gbaseprice`) INNER JOIN db1_local.gitemtable ON db1_local.gitem(`gitemcode`)=db2_local.gitem(`gitemcode`)
  6. Thanks for reply, echo $value did the job, and works just fine. I apologize for not complied with the forum rules and gave the complete code Greetins
  7. Nope, it just display name of cat and id, no content, also tried with echo but same thing
  8. Hello, need help with this code, I want to display content of this link on single page This is back link, so I want user to have this content on the bottom of page, so it does not need to click to get where previously was. I appreciate any help Thanks </a> <strong>ยป</strong> </font><a href="catbrowser.php?qcatid=<?=$value['gcategoryid']?>" class="backToLink"> <?=$value['catname']?> </a>
×
×
  • 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.