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>...
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...
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.
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...
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...
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 =...
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...
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...
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...
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...
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...
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...
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?
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...
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"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.