Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 217
» Latest member: devanshu.raz
» Forum threads: 126
» Forum posts: 231

Full Statistics

Online Users
There are currently 2 online users.
» 0 Member(s) | 2 Guest(s)

Latest Threads
Way2Sms 100% Working Scri...
Forum: Web Orianted Scripts
Last Post: trainerplus
07-15-2017, 06:58 PM
» Replies: 5
» Views: 50
How to get total affected...
Forum: Programming Related
Last Post: trainerplus
07-10-2017, 06:26 AM
» Replies: 0
» Views: 11
How to convert node.js my...
Forum: Programming Related
Last Post: trainerplus
07-09-2017, 06:31 PM
» Replies: 1
» Views: 11
Free MP3 Search Engine PH...
Forum: Mobile & Wapscripts
Last Post: ykmahala
07-07-2017, 06:09 AM
» Replies: 2
» Views: 234
How to Block a Specified ...
Forum: Programming Related
Last Post: Sarahrose
06-28-2017, 12:24 PM
» Replies: 4
» Views: 71
Html 5 UI Design Template...
Forum: Android Development
Last Post: waphunt@gmail.com
05-31-2017, 07:27 AM
» Replies: 0
» Views: 54
Javascript to get unique ...
Forum: Programming Related
Last Post: waphunt@gmail.com
05-29-2017, 09:16 AM
» Replies: 0
» Views: 39
sony xperia companion ker...
Forum: Helps & Support
Last Post: waphunt@gmail.com
05-25-2017, 12:59 PM
» Replies: 0
» Views: 72
sony xperia companion set...
Forum: Helps & Support
Last Post: waphunt@gmail.com
05-25-2017, 12:52 PM
» Replies: 0
» Views: 44
How to Grab Other Website...
Forum: Programming Related
Last Post: waphunt@gmail.com
05-23-2017, 04:47 PM
» Replies: 0
» Views: 110

 
  How to get total affected row counts in mysql using node.js
Posted by: trainerplus - 07-10-2017, 06:26 AM - Forum: Programming Related - No Replies

Hello guys...

Today I am going to share a code that will helps you to get the total affected rows in Mysql Database using PHP Code. I am using the below code to select data from database in node.js.


Code:
app.get('/select', function(req,res){
  pool.getConnection(function(error,conn){
      var queryString = "SELECT * FROM `installation`";

      conn.query(queryString,function(error,results){
          if(error)
              {
                  throw error;
              }
          else
              {
                console.log("Total Records:- " + results.length);
              }

      });
      conn.release();
  });
});


On the above code, The below code will helps you to show the affected row counts from Mysql Database.


Code:
console.log("Total Records:- " + results.length);


I hope this worked well for you.

Thanks

Print this item

  How to convert node.js mysql database result to json
Posted by: waphunt@gmail.com - 07-09-2017, 06:29 PM - Forum: Programming Related - Replies (1)

Hello guys..

I am trying to select data from Mysql Database and show it via JSON. Now I am getting the result via the console window of command prompt or via the powers h. All I want, get the result in JSON format. The code that I want to convert to json are the following.

Quote:app.get('/select', function(req,res){
   pool.getConnection(function(error,conn){
       var queryString = "SELECT * FROM `installation`";

       conn.query(queryString,function(error,results){
           if(error)
               {
                   throw error;
               }
           else
               {
                 console.log(results);
               }

       });
       conn.release();
   });
});


Please help me with this.

Print this item

  Way2Sms 100% Working Script Updated to New Version
Posted by: waphunt@gmail.com - 06-27-2017, 05:51 PM - Forum: Web Orianted Scripts - Replies (5)

[Image: Way2Sms%2BPhp%2BApi%2BScript-min.png]
Introduction:

The script is updated to a new version because of the request from Youtube and from My blog. Now you can download the script from the attachment.

You can check out the working demo here: Demo

If you have any quries related to this script. Please share your comment and replay back soon as possible.

Installation:

You can easly install this script on your server. First of all you need to download the script. Once you downloaded the script. Upload them to your server and extract it to the root folder.

Now access the root folder via browser and there you can see the script runs live.

Thanks

This Thread is Created to Support : http://www.howi.in/2015/07/way2sms-worki...cript.html



Attached Files
.zip   Way2sms Working API Updated Version 3.zip (Size: 41.69 KB / Downloads: 157)
Print this item

  Html 5 UI Design Templates for Creating Hybrid Android Application
Posted by: waphunt@gmail.com - 05-31-2017, 07:27 AM - Forum: Android Development - No Replies

Hello guys..

It is very hard to create UL Designs for mobile applications. So, most of the case we choose Ionic or jquery designs to design our Hybrid android application. Today I am going to share some website address, Which helps you to create own android app with custom and awesome design. You can integrate this design with while creating android app using Cordova or Phonegap. Anyway just enjoy this article.

Thanks

Website Address List:

  • https://framework7.io/
  • https://onsen.io/
  • https://mobirise.com/free-template/app-showcase-demo/
  • https://github.com/commadelimited/jQuery-Mobile-Bootstrap-Theme
  • http://www.jqmphp.com/
  • https://www.sketchappsources.com/free-source/2668-instagram-home-view-ios-sketch-freebie-resource.html
  • https://www.sketchappsources.com/free-source/535-sparrow-redesign-concept-sketch-freebie.html

Print this item

  Javascript to get unique id for devices
Posted by: waphunt@gmail.com - 05-29-2017, 09:16 AM - Forum: Programming Related - No Replies

Hello guys.

Today I am going to share a code which helps you to create unique id for each device that browse your website. By using this script, you can track your new visitors, returning visitors etc.

Code:
var navigator_info = window.navigator;
var screen_info = window.screen;
var uid = navigator_info.mimeTypes.length;
uid += navigator_info.userAgent.replace(/\D+/g, '');
uid += navigator_info.plugins.length;
uid += screen_info.height || '';
uid += screen_info.width || '';
uid += screen_info.pixelDepth || '';
console.log(uid);

I hope this helps you. 

Thanks

Print this item

  sony xperia companion kernel32.dll error problem [Solved]
Posted by: waphunt@gmail.com - 05-25-2017, 12:59 PM - Forum: Helps & Support - No Replies

Hello guys..

Today I am going to give you the solution for the error kernel32.dll while installing the sony xperia companion software on your Windows 7 operating System.

In-order to solve the problem you have to follow the given steps below.

The first thing that you need to do is. Go to the official website of Sony and download the latest version of Sony Xperia Companion.

Download The Sony Xperia Companion:
http://support.sonymobile.com/global-en/...companion/

Now you need to download other file from Microsoft Official Website to Solve the problem of Kernel32.dll error.

Download The File From Microsoft Official Website:
https://support.microsoft.com/en-us/help...-execution

Don't forget to download the file as per your Operating System Bit Format..

Install the file in to your system and restart your Computer.

Now install the Xperia software...

You are done.

Print this item

  sony xperia companion setup failed problem [Solved]
Posted by: waphunt@gmail.com - 05-25-2017, 12:52 PM - Forum: Helps & Support - No Replies

Hello.

The setup starting problem of Sony Xperia Companion problem finally solved with few steps. Inorder to solve the problem, follow the steps that given below.

Download Latest Sony Xperia Companion Software from Official Website of Sony:
http://support.sonymobile.com/global-en/...companion/

Now You Need to Download Another Software From Official Website of Microsoft:
https://support.microsoft.com/en-us/help...-execution

Don't forget to download the setup as per your Windows Operating System Bit.

Download it and install the software in your system and restart your System.

Now install the Sony Xperia Companion in to your system.

You are done.

Print this item

  How to Grab Other Website Content Using PHP
Posted by: waphunt@gmail.com - 05-23-2017, 04:47 PM - Forum: Programming Related - No Replies

Hello,

Today I am going to share a code which helps you to grab other website content to your website using PHP code. Inorder to grab other website content to your website, just copy and paste the below code to your website and change the website address that you want to grab.

PHP Code:
$html=file_get_contents("http://www.somewebsite.com"

After grabbing the code. You can hide contents of the website using css.

I hope you enjoy the script..

Thanks

Print this item

  How to Style Wordpress Post Listing Pagination
Posted by: waphunt@gmail.com - 05-09-2017, 11:05 AM - Forum: WordPress Development - No Replies

Hello. Guys.

Today I am going to write about styling Wordpress Post Pagination Styling. In order to style your Wordpress pagination. Just copy the below CSS code to your WordPress style.css or your custom CSS style code.

Code:
.page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px 0 0;
    border: 1px solid #eee;
    line-height: 1;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
}
.page-numbers.current,
a.page-numbers:hover {
    background: #f9f9f9;
}

If you don't have pagination in your Wordpress post listing page? If not, just copy the below PHP code to the page which you want to show the pagination code.

PHP Code:
<?php the_posts_pagination( array(
    
'mid_size' => 2,
    
'prev_text' => __'Back''textdomain' ),
    
'next_text' => __'Onward''textdomain' ),
) ); 
?>

Thanks.

You can call the pagination code using include code in php.

Print this item

  WordPress Pagination Code to Display Page Pagination in Custom Post Type
Posted by: waphunt@gmail.com - 05-07-2017, 05:06 PM - Forum: WordPress Development - No Replies

Hello, Guys.

Today I am going to share the code which helps you to add number type pagination to your custom type blog post listing template page. All you want to do, Create a page called pagination.php in page-templates folder and copy the given code to it. After that call the page using include function to your custom type post listing page in page-template folder.

PHP Code:
 <?php

    $big
=100;

 
    echo paginate_links(array(

 
       'base' => str_replace$big'%#%'esc_urlget_pagenum_link$big ) ) ),

 
       'format' => '?paged=%#%',

 
       'current' => max1$pge ),

 
       'total' => $total,

 
       'prev_text'    => __('<i class="fa fa-caret-left"></i>'),

 
       'next_text'    => __('<i class="fa fa-caret-right"></i>'),

 
   ) ); ?>


            <?php wp_reset_postdata(); ?>



<script>

jQuery(document).ready(function(){

    jQuery('.paging-navigation a').each(function(){

        a=jQuery(this);

        href=a.attr('href');

        href_or=a.attr('href');

        href=href.split('/');

        if(href[7]==1){

        if(href[4]=="ar"){new_href= href_or.replace("/page/1","");

        a.attr('href',new_href);}}

    })

})

</script> 

You can call the pagination code by using the include in PHP. Like the below example.

PHP Code:
            <?php

            $news_args 
= array(

                    
'post_type' => "college_directory",

                    
'post_status' => "publish",

                    
'orderby' => 'menu_order',

                    
'posts_per_page' => 1,

                    
'paged' => $paged,

                    
'order' => 'ASC'

            
);

            
$my_query = new WP_Query($news_args);

            if (
$my_query->have_posts()) {

                    while (
$my_query->have_posts()) {

                            
$my_query->the_post(); ?>
                    <div class="media">
                        <div class="media-left media-middle">
                                <a href="<?php the_permalink(); ?>">
                                <div><?php   the_post_thumbnail( array(6565))?></div>
                                </a>
                            </div>
                            <div class="media-body">
                                <h4 class="media-heading"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                                    <p class="media-p"><?php the_excerpt(); ?></p>
                            </div>
                    </div>
                    <?php

                
$total $my_query->max_num_pages;

                    
$pge get_query_var('paged');

                    include 
'pagination.php';

            } else {

                    echo 
'No institutions to display';

            }

            
?>

On the above page, you can see that by using include I called the pagination.

If you have any doubts, Just comment.

Thnaks.

Print this item