Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. smavtron

    How To Hide Your JavaScript With PHP!

    We plan to use this script How To Hide Your JavaScript With PHP! On the page where the JavaScript is placed, add: <? session_start(); if (!isset($_SESSION['access'])){ $_SESSION['access'] = true; $access = true; } ?><html> <head> <script language="JavaScript" src="script.php"></script>...
  2. smavtron

    Loop Display

    I made changes to the code <?php $columns = 1; //change the query to get another field from the database $query = "SELECT * FROM rss WHERE merchant = ('Buy.com')"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); $rows = ceil($num_rows / $columns); //to do this...
  3. smavtron

    Loop Display

    jpadie, Sorry.... have been struggling for last 2 days.... not able to make out the final output format. Would request that please suggest with code changes in the script. It may take you only few minutes.... TIA.
  4. smavtron

    Loop Display

    jpadie, need more help to resolve..... can you help in the code with your suggestion "add some conditionals
  5. smavtron

    Loop Display

    Need some help to tweek the result..... the code modified shows Sub_cat1 offer Sub_cat1 offer Sub_cat2 offer Sub_cat2 offer you can view at http://indian-town.com/coupon/view_type/test1.php How can I make it to display Sub_cat1 offer offer Sub_cat2 offer offer...
  6. smavtron

    Loop Display

    Kharas... thanks for the suggestion. But for this I will have to run the query times the sub_cat... and in future if more added will have to manually update the page... I would prefer "in a single move ALL the categories with ALL of their SUB Categories". Also can the same code be used for...
  7. smavtron

    Loop Display

    I have been able to put the script to be one step ahead <?php $columns = 4; //change the query to get another field from the database $query = "SELECT * FROM rss WHERE merchant = 'Buy.com' ORDER BY `link_detail`"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); $rows =...
  8. smavtron

    Loop Display

    I have 4 variables, namely Merchant, sub_cat, link_detail & link and want to display on the page as Merchant sub_cat <a href=link>link_detail</a> <a href=link>link_detail</a> <a href=link>link_detail</a> <a href=link>link_detail</a> sub_cat <a href=link>link_detail</a> <a...
  9. smavtron

    Parse variable to display in Carp RSS to HTML

    jpadie... I am able to get the script working using Sleidia suggestions. Can you please clarify your suggestion step-by-step. Don't know that mucg prgramming. Also... need help displaying data. I have 4 variables, namely Merchant, sub_cat, link_detail & link and want to display on the page as...
  10. smavtron

    Parse variable to display in Carp RSS to HTML

    These are RSS feeds for various merchants. What would be the best method to do?... based on suggestion Sleidia, I was thinking to 1. Create a database with links 2. Pull the encoded links on a page... set the variable with encode base64_encode(link1)...base64_encode(link2) 3. The links will be...
  11. smavtron

    Parse variable to display in Carp RSS to HTML

    Thanks for clarifying... but I need clarification on your clarification :) though ur suggestion works The url in first place is test.php?rss=http://www.buy.com/rss/feed.asp?loc=273&grp=4&pid=1519777 and not...
  12. smavtron

    Parse variable to display in Carp RSS to HTML

    I am able to understand CarpCacheShow(base64_decode($_GET["rss"])); but not clear on suggestion $rss = base64_encode("http://www.buy.com/rss/feed.asp?loc=273&grp=4&pid=1519777"); /test.php?rss=$rss the url will be...
  13. smavtron

    Parse variable to display in Carp RSS to HTML

    I have a RSS feed http://www.buy.com/rss/feed.asp?loc=273&grp=4&pid=1519777 which I can display directly (hard code) in the script by doing CarpCacheShow('http://www.buy.com/rss/feed.asp?loc=273&grp=4&pid=1519777') and it works OK. Going a step ahead I want to display this by calling...
  14. smavtron

    How to pass variable in .pl file

    thanks for all the help and input.... solved with calling teh variable as <!--cgi: query_str-->
  15. smavtron

    How to pass variable in .pl file

    Thanks for all the replies. We are using perlfect 3.2 for seach scripts. The way it works is that <iframe....> script is in templates/search.html and gets pulled in search.pl. I am not sure how the coding is done. I may to did more it seems to first understand how the script works... any ideas?
  16. smavtron

    How to pass variable in .pl file

    Hi feherke, Thanks for thr reply. I tried print param('q'); it just displays exactly the same content "print param('q');" instead of printing the variable. As mentioned I do not know anything in perl... can you please walk me through your suggestion "Or you can extract the parameter from...
  17. smavtron

    How to pass variable in .pl file

    I don't have knowledge on perl.... I have completed the same in php and works, now want to do the same in .cgi I am trying to pass the variable "q" in the example below /cgi-bin/search/search.pl?p=1&lang=en&include=&exclude=&penalty=0&mode=all&q=dell in code <iframe height="600"...

Part and Inventory Search

Back
Top