Comment by user3040610 on How to access JSON array in PHP
check what you are getting from print_r($_POST['datastring']);
View ArticleComment by user3040610 on No index defined in MySQL wp_postmeta and wp_posts
Brando -check the errors you get in firebug console
View ArticleComment by user3040610 on Wordpress - connect to OAuth server
did u tried with this plugin wordpress.org/plugins/oauth2-provider
View ArticleComment by user3040610 on Menu mobile Wordpress it's under the home
@daniele check in wp-content/themes/hue/css/hue.css
View ArticleComment by user3040610 on Reset jQuery multiselect dropdown with a checkbox
Add return false at the end in $("#resetsfilter").click(function () {})
View ArticleComment by user3040610 on Click on button pops up share mobile phone window html
what do you mean by window of mobile phones? are you need it in responsive page or mobile application?
View ArticleComment by user3040610 on Add remove button on jQuery UI autocomplete
do you want to remove the autocomplete items or autocomplete itself
View ArticleComment by user3040610 on Alternate button colour on click
for dynamic buttons in for loop you should use the class and call the click event with that class
View ArticleComment by user3040610 on MySQL - How to get primary key of a table?
Try SHOW INDEXES FROM tablename WHERE Key_name = 'PRIMARY'
View ArticleComment by user3040610 on How can i check if a URL is accessible to a user?
whent the url was not accessible handle it with error:function(){}
View ArticleComment by user3040610 on MySQL not starting in xampp
check that mysql port is blocking using Netstat in xampp
View ArticleComment by user3040610 on multiple checkbox values inserting using foreach...
check the browser console for the ajax post data is sent correctly and also check in php end with print_r($_POST)
View ArticleComment by user3040610 on How to write script to bind and unbind to stop and...
try with $(document).on(event,selector, function) for binding and unbinding the click handler
View ArticleComment by user3040610 on Add links of outside pages to wordpress blog menu.
what was the error you getting in your menus and how you have implemented it.
View ArticleAnswer by user3040610 for How to Enable HTTPS in WordPress using .htaccess?
You can try the following:RewriteEngine On RewriteCond %{HTTP_HOST} ^hubket\.com [NC]RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.hubket.com/$1 [R,L]
View ArticleAnswer by user3040610 for Override default xml in Magento 2.1 for header...
Your XML path in the module is incorrect. It should be like this:vendor/magento/module-theme/view/frontend/layout/default.xml to app/code/my_module/my_project/view/frontend/layout/default.xml .
View ArticleAnswer by user3040610 for How to get sum of all selected data from bootstrap...
You can get the attribute value with below code,var price= $('#serviceid option:selected').attr('data-price');
View ArticleAnswer by user3040610 for Jquery find a element inside a div
Try this:$('#customer').parent('div').html();
View ArticleAnswer by user3040610 for how to loop and autoanimate a content slider in jquery
Try this:$('.next').click(function(){ $('div.slide').animate({ left: "-=800px" }, 800, function() { // Animation complete. });});
View ArticleAnswer by user3040610 for updating table columns with arrays, php
It should be like this,remove the for loop $values=array('reas'=>$reason,'actu'=>$act,'ids'=>$apid); $update_row =mysql_query("UPDATE ActivityProduct SET Actual=...
View ArticleAnswer by user3040610 for Parse error: syntax error, unexpected T_IF,...
Update with below code, $option = $_GET['I-would-like']; if ($option == 'A quotation' OR $option == 'Information') { $role='customer'; } else if($option == 'To become a Partner') { $role='partners'; }...
View ArticleAnswer by user3040610 for Exclude posts that belong to both of two categories
It should be like this:function exclude_category( $query ) {if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-16,-9' ); }}add_action( 'pre_get_posts',...
View ArticleAnswer by user3040610 for YQL rss feed from wordpress set limit
Try this,change no_items to wordpress limit,YUI().use('node', 'gallery-yql', function(Y) { new Y.yql('select * from rss where url="http://caremonkeys.co.uk/feed/"', function(r) { if (r.query) { if...
View ArticleAnswer by user3040610 for Hide children posts in loop with custom taxonomy
Try this,you have to use include_children as below to remove the children taxonomies. $args = array( //Rest of you args go here'tax_query' => array( array('include_children' => false )...
View ArticleAnswer by user3040610 for Magento2 Product count and minimum price from all...
Try this to get the subcategory with the current category:$subcategory = $category->getChildrenCategories();foreach($subcategory as $subcat) { echo $subcat->getName();}
View ArticleAnswer by user3040610 for Can i use inline css in mPdf while creating PDF?
With mpdf,add the css with below$styles = file_get_contents('style.css');$mpdf->WriteHTML($styles,1);
View ArticleAnswer by user3040610 for Page count function
Get the results and check whether it has records. // Check to see if record exists $sql = "SELECT * FROM page_tracking where name ="index.php""; $query = mysqli_query ($conn, $sql);...
View ArticleAnswer by user3040610 for Getting text from input form returns empty string,...
Try this,<form><input id="user_name" type="text" placeholder="Your Name" /><input id="user_email" type="text" placeholder="Your E-mail" /><input id="submitBtn" type="submit"...
View ArticleAnswer by user3040610 for Returning MySQLi INSERT status via JSON to a...
Get your json response using ajax as below$.ajax({ url: 'addarticle.php', cache: false, type: 'post'}).done(function(response) { console.log(response);});
View ArticleAnswer by user3040610 for Ajax request issue
Handle the click event with document on...$(document).ready(function(){ $(document).on('click','#order',function(e){ e.preventDefault(); $.ajax({type: "POST", url: "itemOrder_php2.php", data: {...
View ArticleAnswer by user3040610 for Showing posts of a term under a custom taxonomy of...
Try this, $posts_array = get_posts( array('posts_per_page' => -1,'tax_query' => array( array('taxonomy' => 'appliances','field' => 'slug','terms' => 'home-appliances', ) ) ));
View ArticleAnswer by user3040610 for how to call one procedure value to another in mysql
Try this,CREATE PROCEDURE sp2(in a INT,out b int)BEGINCALL sp1(@value);SELECT @value; END;
View ArticleAnswer by user3040610 for Query for searching if part of text is not distinct
Use Group By SELECT DISTINCT name FROM some_table WHERE xml LIKE '%name="name">[value to search for]%' GROUP BY name
View ArticleAnswer by user3040610 for Force the www rewrite cond issue
Try this and restart the server,RewriteEngine OnRewriteCond %{HTTP_HOST} !^www.topseonow.com$ [NC]RewriteRule ^(.*)$ http://www.topseonow.com/$1 [L,R=301]
View ArticleAnswer by user3040610 for Display json data to HTML file
Display json data into html with below from the json response, $("div").html('<div>'+data.title+'</div><div>'+data.description+'</div>');
View ArticleAnswer by user3040610 for How to replace specific tag with regex in php?
Try this to replace the anchor text to given string with preg_replace,$string = 'dog';$content = 'a quick brown <a href="some-link"> fox</a> jumps over a lazy <a href="another-link">...
View ArticleAnswer by user3040610 for json_decode NULL on $_GET
Try this to get the value:$data= json_decode('[{"name": "data[stateAttr]", "value": "california, 38.8 million, golden state, 163,696 mi square, 2,448 trillion, sacramento"}]');print_r($data[0]->value);
View ArticleAnswer by user3040610 for Convert NOT IN to NOT EXISTS SQL firebird
select * from MYCARD T1 WHERE NOT EXISTS (select 1 from MYCARD WHERE IDMONEY = 5AND IDCARD = 80group by IDCARD, YEAR)
View ArticleSession value not working when FPC cache enabled
Session value not working in blocks when FPC cache enabled.How to handle the session value in cache enabled blocks.I have added the customer session id as below.How to get the customer id from cache in...
View ArticleAnswer by user3040610 for Unable to get jsonDecode in magento 2
Try below code with magento 2 for json decode$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$jsonManager = $objectManager->get('\Magento\Framework\Json\Decoder');return...
View ArticleAnswer by user3040610 for how to remove www using htacces
Try the below code,it will redirect to https without www and works for me RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]RewriteRule (.*)...
View ArticleAnswer by user3040610 for How can I get the index of prev and next item in...
Try below code to get the index,var owl = $('.cat-slides');owl.owlCarousel();owl.on('changed.owl.carousel', function (e) { var currentindex = e.item.index; return currentindex;});
View ArticleAnswer by user3040610 for Implode values of each row in a 2d array
Use implode to change the array values to comma seperated value, $array_values= []; foreach($initial_array as $array) { $array_values[]=implode(',',$array); } var_dump(array_values);
View Article