I have affiliate api of amazon,ebay,flipkart and snapdeal. I want to combine all api results to my web page with pagination. Like this website https://www.compareraja.in/mobiles.html If possible please suggest any ideas. I am using opencart for development.

Member Avatar
Member Avatar
+0 forum 3

I'm trying to generate barcode tickets after successful booking and it's working fine. But yesterday (08-Jan-2017) night at 11.59 pm, one customer booked 2 tickets but the ticket sl.no was duplicate. Tthat is both tickets sl.no was 1. Actually it should be 2. But the next customer's tickets sl.no was correct, it's 3,4,5. Is there any mistake in the code below where the tickets get generated? for($j=1;$j<=$cat_array[$i];$j++) { $sel_max_dt = mysql_query("select MAX(DT) AS maxdt, MAX(REC_NO) AS maxrec FROM tkt_barcode"); //to select max date and max rec no. $row_max_dt = mysql_fetch_array($sel_max_dt); $dt_max = $row_max_dt['maxdt']; //$no_max = $row_max_dt['maxno']; $recno = $row_max_dt['maxrec']; if($dt_max …

Member Avatar
Member Avatar
+1 forum 8

How to find array values is present in a string of shuffled letters. $string = "ankegsrdib"; $words = array("ask","bird","egg"); which function should I use to find this.? Also the result should be like this array("ask"=>"Yes","bird"=>"Yes","egg"="No") please suggest some ideas.

Member Avatar
Member Avatar
+0 forum 4

When I use pagination for custom post type 'product' its working fine but its not working for the categories of custom post type. for ex. pagination working for this **'http://localhost/wordpress/products/page/2/'** and not for this **'http://localhost/wordpress/products/landscape/page/2/'** its always showing the first page content. How to solve this? given below is my code. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'product', 'posts_per_page' =>1,'taxonomy' =>'product_cat','term' => $cat_name1,'orderby'=>'post_date','page'=>$paged ); $wp_query = new WP_Query($args); if($wp_query->have_posts()) : while ($wp_query->have_posts()): $wp_query->the_post(); <div class="product_list"> <?php the_title();?> </div> <?php endwhile; ?> <?php wp_pagenavi( array( 'query' => $wp_query ) );//plugin code ?> <?php else : …

Member Avatar
Member Avatar
+0 forum 1

hi all, pls help... this is my code from where i can select multiple values and post... but it is not displaying the selected values in multiple dropdownlist... how can i solve this???? <?php $loc_con1 = array(1=>'ALL','Andaman and Nicobar Islands','Andhra Pradesh', 'Arunachal Pradesh','Assam', 'Bihar','Chandigarh','Chhattisgarh','Dadra and Nagar Haveli','Daman and Diu','Delhi','Goa','Gujarat','Himachal Pradesh','Jammu and Kashmir','Jharkhand','Karnataka','Kerala','Lakshadweep','Madhya Pradesh', 'Maharashtra','Manipur','Meghalaya','Mizoram','Nagaland','Orissa','Pondicherry','Punjab','Rajasthan','Sikkim','Tamil Nadu','Tripura','Uttaranchal','Uttar Pradesh','West Bengal'); $i=0; ?> <select name="loc_considered[]" multiple="multiple"> <?php for($j=1;$j<=(count($loc_con1)-0);$j++) { if($loc_con1[$j] == $loc_con[$i]) { echo '<option value="'.$loc_con1[$j].'" selected="selected">'.$loc_con1[$j].'</option>\n'; $i++; } else { echo '<option value="'.$loc_con1[$j].'" >'.$loc_con1[$j].'</option>\n'; } } ?> </select>

Member Avatar
Member Avatar
+0 forum 4

How to create offers section in a e-commerce PHP website. Should I create separate table for offers in the database.? Given below is the offers example offers ex : 20% discount, Buy 1 get 1 etc.. How to start and end this? Please help me to do this.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am trying to select single record from each year of last ten year. Given below is the code what I am using now. But its taking too much time to get the result. Is there any way to make it fast? $sql_cond ="SELECT Close_Price FROM (SELECT Close_price FROM cash_data WHERE SERIES='".$series."' AND SYMBOL='".$symbol."'"; $sql_gain_data="SELECT (".$sql_cond." AND date_added <= '".$year_1."' ORDER BY date_added DESC LIMIT 0,1) as year1) as clyear1, (".$sql_cond." AND date_added <= '".$year_2."' ORDER BY date_added DESC LIMIT 0,1) as year2) as clyear2, (".$sql_cond." AND date_added <= '".$year_3."' ORDER BY date_added DESC LIMIT 0,1) as year3) …

Member Avatar
Member Avatar
+0 forum 13

How to disable forwarding credential contents from email.? ie. if a mail send to a user from my website, don't allow the user to forward the credential contents to another mail.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am trying to insert 1000 above data into a table but after inserting 500 something data its showing an "Internal Server Error". I tried after changing max_execution_time in php.ini and some other methods but no use. But this works fine in localhost. Given below is my code. $submitted = !empty($_POST); if($submitted==true) { $date = date("Y-m-d",strtotime($_POST["add_date"])); //select cash data for selected date $cond_data = "WHERE date_added ='$date'"; $sql_data=$objA->select_rows(TABLEPREFIX.'cash_data','SERIES,SYMBOL',$cond_data); if(mysql_num_rows($sql_data)>0){ while($row_data=mysql_fetch_array($sql_data)){ $series = $row_data["SERIES"]; $symbol = $row_data["SYMBOL"]; //to find exist data $cond_exist = "WHERE SERIES='$series' AND SYMBOL='$symbol' AND date_added ='$date'"; $sql_exist=$objA->select_rows(TABLEPREFIX.'cash_stock_scanning','count(*) as nm',$cond_exist); $row_exist = mysql_fetch_array($sql_exist); $sql_avg=mysql_query("SELECT AVG(CASE WHEN …

Member Avatar
Member Avatar
+0 forum 11

I want to view the details of a product in single.php. The product is inserted in a newly added table "products" in the wordpress database and it has no post_type or post_id.

Member Avatar
Member Avatar
+0 forum 3

hi all... how to categorize multiple values in a table field. for ex:- id Field 1 Adult 2 Adult 3 Child 4 Child 5 Senior 6 Senior i.e, 3 category Adult as 1,Child as 2, Senior as 3 i want the result as like this count catname 1 of 1 2 of 1 1 of 2 2 of 2 1 of 3 2 of 3 please help me to solve this.... tnx in advc...

Member Avatar
Member Avatar
+0 forum 2

hi all.. using .htaccess how to rewrite this http://mydomain/page-name/ to http://mydomain/page-name.html ? pls help me to solve this... tnx in advnc.

Member Avatar
Member Avatar
+0 forum 2

hi..all i want to create a new page in the wordpress admin panel to manage orders with file uploading and message sending option. please help me to do this... tnx in advnc..

Member Avatar
Member Avatar
+0 forum 3

hi all... how to rewrite this url http://mydomain.com/cms.php?cms_id=about to http://mydomain.com/about without any error using .htaccess rewriterule. pls help me to solve this.. tnx in advnc...

Member Avatar
Member Avatar
+0 forum 4

hi all... how to add new font style in the richtext editor.... plz help me... tnx in advnc...

Member Avatar
Member Avatar
+0 forum 1

hi all pls help me... how to create unique reference id for all users registering in my site...?? tnx in advnc...

Member Avatar
Member Avatar
+0 forum 3

hi all i want to change my wordpress site category url. now its like this mysite.com/?cat=1 ,but i want to change it like this mysite.com/?category=sports . i dont know how to make this. pls help me to do this. tnx in advnc

Member Avatar
Member Avatar
+0 forum 3

hi all... i'm doing a wordpress jobsite... now its searching only jobs from the backend but i also want to include search results from the jobsite indeed.com on my result page... i use the api of indeed.com to fetch the jobs and its showing jobs in the home page..... but i dont know how search jobs from that.... pls help me to do that..... tnx in advnc.........

Member Avatar
Member Avatar
+0 forum 1

hi all... i'm doing a job site and i want to view jobs from another jobsites like http://www.indeed.co.in/ on my website using xml feed. i dont know how to implelement that ....... pls help me to do that... tnx in advnc...

Member Avatar
Member Avatar
+0 forum 3

hi all pls help me.... im trying to select all related items of a particular product... related items are also another products... here is an example of my table product... prod_id related_id 100 101,102,103 101 104,105 102 101,100 103 100,101 104 103 105 104 if i select product with prod_id = 100, it should select all related products from the table.... pls help me to fix this.... tnx in advnc...

Member Avatar
Member Avatar
+1 forum 9

hi all.. i'm trying to get the next page content inside the <ol> tag to append within the current page <ol> tag... given below is the jquery i'm using... when i use alert "next_page" its showing the next page's link.. but its not loading the next page content in the current page... <script type="text/javascript"> jQuery(".paging div a").live('click', function(e) { e.preventDefault(); var next_page = jQuery(this).attr('href'); //alert(next_page); jQuery.get(next_page, function(data) { var $response = jQuery(data); var more_div = $response.find('.job').html(); jQuery('</ol>').hide() .append(more_div) .appendTo('.job') .delay(100) .slideDown('slow') jQuery('.paging').not(':last').hide(); }); //alert($response); }); jQuery('.paging div a').live('click', function(e) { e.preventDefault(); if (jQuery('.job').length != 1) { jQuery('.job').last().remove(); } jQuery('.paging').last().remove(); jQuery('.paging').last().show(); …

Member Avatar
Member Avatar
+0 forum 1

hi all pls help me... im trying to display categories and its sub categories... but i dont know how to display subcategory.. ijust only know to display the category.. i created two tables in the database named tbl_category and tbl_subcategory in both table the field cat_id is common.... here is my code for displaying category list.. <?php $sql="Select * from tbl_category"; $obj->query($sql); $nume=$obj->num_rows(); while($row=$obj->query_fetch()) { $c_id = $row['cat_id'] ?> <ul> <li><a href="products.php?cat_id=<?php echo $row['cat_id'];?>&name=<?php echo $row['cat_name'];?>"><?php echo $row['cat_name']; ?></a> </li> </ul> <?php } ?> pls help me to display sub category corresponding to the categorylist. tnx in advnc..

Member Avatar
Member Avatar
+0 forum 4

hi... all... i'm doing a wordpress jobsite... in the home page i want to load all the jobs list by using infinite scrolling with load more button... i found an example here http://www.authenticjobs.com/ and i dont know how to do it.. can anyone help me pls... here is my index.php... and i want to do it here <?php // Empty search fixes if ( isset($_GET['resume_search']) && $_GET['resume_search'] ) : if (isset($_GET['s']) && isset($_GET['location']) && !empty($_GET['location'])) : get_template_part('search-resume'); return; endif; wp_safe_redirect(get_post_type_archive_link('resume')); exit; endif; if (isset($_GET['s']) && isset($_GET['location']) && !empty($_GET['location'])) : get_template_part('search'); return; endif; ?> <?php get_header('search'); ?> <?php do_action('jobs_will_display'); ?> <?php …

Member Avatar
Member Avatar
+0 forum 6

hi all... google webmaster tools showing some strange urls as crawl errors in my wordpress site.... here is some examples... http://www.adadasdsdas.in/dmpeg/zzrqj.php?m=548755&gt;active http://www.adadasdsdas.in/dmpeg/zzrqj.php?m=797641&gt;24 http://www.adadasdsdas.in/dmpeg/zzrqj.php?m=896152 i don't know from where "/dmpeg/zzrqj.php?m=548755&gt;active" is gnerating and adding to the url?... bcoz there is no such php files or folders in the server.... pls help me to solve this.. tnx in advnc

Member Avatar
Member Avatar
+0 forum 1

hi all... pls help me to fix this.. google webmaster tools showing some of the links as '404' crawl errors in my wordpress site.... and its increasing day by day... actually there is no such links or files are present in the site... here is the example for crawl errors... http://www.asdasdasd.com/products.php 404 2/19/2013 Not found http://www.asdasdasd.com/portfolio9.php 404 2/18/2013 Not found any help... tnx in advnc

Member Avatar
Member Avatar
+0 forum 4

hi all... pls help me to fix this.. google webmaster tools showing some of the links as '404' crawl errors in my wordpress site.... and its increasing day by day... actually there is no such links or files are present in the site... here is the example for crawl errors... http://www.asdasdasd.com/products.php 404 2/19/2013 Not found http://www.asdasdasd.com/portfolio9.php 404 2/18/2013 Not found i want to redirect these links to existing links that is http://www.asdasdasd.com/portfolio9.php to http://www.asdasdasd.com/portfolio/ any help... tnx in advnc...

Member Avatar
Member Avatar
+0 forum 2

hi all... im getting undefined index errors while running my code in localhost. im using wampserver 2.2... but it works fine with older version of wampserver. here is my example code for products page.... <?php $man_id=$_GET['man_id']; $man_name2=$_GET['manf_name']; $man_name=str_replace('-',' ',$man_name2); $cat_id=$_GET['cat_id']; $cat_name2=$_GET['name']; $cat_name= str_replace('-',' ',$cat_name2); if($cat_id!=""): ?> <span class="pro-head"><?php echo $cat_name;?></span> <?php elseif($man_id!=""): ?> <span class="pro-head"><?php echo $man_name;?></span> <?php else:?> <span class="pro-head">Products</span> <?php endif;?> <?php $search_text=$_GET['keyword']; $limit =10;$addLimit=""; if($_REQUEST['page']>0){ $page = $_REQUEST['page']; $offset = ($page-1)*$limit; }else $page=1; if($offset>0) $limitingVal[] = $offset; $limitingVal[] = $limit; if(count($limitingVal)>0) $addLimit = "LIMIT ".implode(",",$limitingVal); //echo "hi".$addLimit; $param=""; if($man_id!=""): $sql="select SQL_CALC_FOUND_ROWS * from tbl_product WHERE manf_id='$man_id' $addLimit"; …

Member Avatar
Member Avatar
+0 forum 4

hi..all.. im a newbie to wordpress im using beauty spa theme... but it doesn't support the plugins.. and it also adding the characters like "#!" in the url when i click on the links. when i removed custom.js from the footer.php the plugins working fine but other functions not working properly... can any one help me out?? tnx in advnc

Member Avatar
Member Avatar
+0 forum 3

hi all.... i dont know how to indicate the gmail status of client is online or offline in a static html page... if client is online then it should be indicate the status in green else it should be red...... any help.... tnx in advnc....

Member Avatar
Member Avatar
+0 forum 1

hi all... pls help me... i have a problem with my code... if there is multiple product id in the table tbl_order_item for an order_id. then it should fetch those product id from that table tbl_order_item. here is my code... echo $s_country; $sql2="SELECT prod_id FROM tbl_order_item WHERE order_id='$order_id'"; $res=mysql_query($sql2) or die(mysql_error()); $i=0; $j=""; while($rs=mysql_fetch_array($res)){ $j .= $rs['prod_id']; $i++; } after fetching... echo $j shows the result as 526527 instead of 526 and 527. i use these two id to fetch their shipping cost from the table tbl_product. here each product have different shipping costs, so i need to fetch the …

Member Avatar
Member Avatar
+0 forum 10

The End.