Theme images by Storman. Powered by Blogger.

15 June 2016

How to clear cache in chrome?

- No comments
It's a smart thought to clear the Google Chrome reserve each once in briefly. The Chrome reserve pre-stores records like pictures and pages that sit on your hard drive for quicker get to if you somehow happened to visit the same pages again or pages that have the same segments. Having this information on the hard drive can be a protection issue for some individuals. Here's the way to clear the information.

Go to google chrome setting








13 June 2016

Connection for controluser as defined in your configuration failed in xampp or phpmyadmin

- No comments
First time using xampp and i have set password already but it still not working and cannot log into my phpmyadmin with xampp how can i solve? here is my screenshot:



If you face this problem you should follow this step:

1) Go to xampp -> phpmyadmin -> open config.inc.php in you editor

2) Find line $cfg['Servers'][$i]['auth_type'] = 'config'; change it to $cfg['Servers'][$i]['auth_type'] = 'cookie';

3) Find line $cfg['Servers'][$i]['password'] = ''; set password to $cfg['Servers'][$i]['password'] = '12345';

4) make sure that your $cfg['Servers'][$i]['password'] and $cfg['Servers'][$i]['controlpass'] are the same password:


By: sharing blog

10 June 2016

How to get data from input type to insert to database with ajax and PHP?

- No comments
Today sharing blog have new topic to share. It is basic example to use ajax with php in order to insert data to database. Here is following code in order to insert data to database:


HTML Code:

<!DOCTYPE html>
<head>
<title>
</title>
</head>
<body>
Mydata1:<input type="text" id="data1">
Mydata2:<input type="text" id="data2">
<input type="button" value="Submit" onclick="get_data()">

</body>

</html>

JavaScript Code:

<script>
function  get_data{

var data1 = document.getElementById("date1").value;
var data2 = document.getElementById("date2").value;

  var base_url= "<?php echo base_url()?>";
  $.ajax({
     type: "POST",
     url:base_url+"folder/insert.php",
     data: {data1: data1,data2:data2},
     success: function(data){
        alert("success");
     }
});

 }

</script>


PHP Code:

<?php

$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";

$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}


$data1 = $_POST['data1'];
$data2 = $_POST['data2'];

$sql = "INSERT INTO Mytable (data1, data2)
VALUES ($data1,$data2)";

if ($conn->query($sql) === TRUE) {
    echo "New record created successfully";
} else {
    echo "Error: " . $sql . "<br>" . $conn->error;
}

$conn->close();

?>

We hope that all code above can help and make your work run smoothly :)

08 June 2016

How to reset password in wordpress?

- No comments
In WordPress, there is more than one approach to set your watchword. In ordinary circumstances, you can do it through the WordPress interface. On the off chance that you overlook your watchword, WordPress has an implicit recuperation system that utilizations email.

Be that as it may, on some hosts, particularly when email isn't working right, some of the time you need to find a way to reset your watchword.

Here's a rundown of various approaches to reset a secret word. Any of them will work, and you just need one to succeed. Which technique you will utilize relies on upon what kind of access regardless you have to your site.





06 June 2016

Undefined property: Report::$db in codeigniter

- No comments
Undefined property: Report::$db in codeigniter


In codeigniter we need to config something in autoload file like "url, database, form,..." because it is very important thing when we using
all of this thing in view file. It is very important that we need to read this error line by line to know what is error is?. so it make us easy to fix our error.

Undefined property: Report::$db in codeigniter?

Solution is that you need to config your code in config->autoload file in codeigniter it is a rule that we should add this code
because codeigniter not clever enought.

You need to config it through this screenshot: 


04 June 2016

How to add stylesheet to wordpress?

- No comments
Unquestionably you can include your own template. I normally simply add my tenets to the style.css document effectively connected in header.php, yet in the event that you need to include another template, utilize this technique in your header.php record:



<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/nameofstylesheet.css" type="text/css" media="screen" />


How to use bootstrap in Codeigniter?

- No comments
Yes of course codeigniter is that one famous among of php framework. It is a one framework that easy to learn. This framework able to work as website, system, or something else...
currently codeigniter is number 3 among of popular php framework. Now let's start to use bootstrap with codeigniter by the way below:

1) ==> download codeigniter at https://www.codeigniter.com/download


2) ==> extract it and put it into our server like warmp server, xampp server ....



3)==> Open view file and add this line of view code 

<!DOCTYPE html>
<html>
<title><?php echo $title; ?></title>
<link rel="icon" type="image/png" href="<?php echo base_url();?>image/favicon.png">
<head>

<meta charset="utf-8">
<script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.12.1.js"></script>

<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/1.12.0/semantic.min.css">

<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/bootstrap.css">

<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/style.css">

<script type="text/javascript" src="<?php echo base_url();?>js/bootstrap.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/bootstrap.min.js"></script>
</head>
<body>

</body>
</html>




02 June 2016

How to export data to excel using javascript?

- No comments
1) Writing html code below

<input type="button" id="btnExport" value=" Export Table data into Excel " />
<br/>
<br/>
<div id="vishare4all">
    <table>
        <tr>
            <th>Column One</th>
            <th>Column Two</th>
        </tr>
        <tr>
            <td>row1 Col1</td>
            <td>row1 Col2</td>
        </tr>
        <tr>
            <td>row2 Col1</td>
            <td>row2 Col2</td>
        </tr>
        <tr>
            <td>row3 Col1</td>
            <td>www.vishare4all.blogspot.com</td>
        </tr>
    </table>
</div>

2) Javascript code

$("#btnExport").click(function (e) {
    window.open('data:application/vnd.ms-excel,' + $('#vishare4all').html());
    e.preventDefault();
});

3) Writing the css code

body {
    font-size: 12pt;
    font-family: Calibri;
    padding : 10px;
}
table {
    border: 1px solid black;
}
th {
    border: 1px solid black;
    padding: 5px;
    background-color:grey;
    color: white;
}
td {
    border: 1px solid black;
    padding: 5px;
}
input {
    font-size: 12pt;
    font-family: Calibri;
}

Result will see like this:




How to change httpd or Apache port in xampp or warmp server

- No comments
Pick a  port number. Investigate all your utilized ports with Netstat (coordinated to XAMPP). ...



1) Edit the record " http.conf "

This record ought to be found in C:\xampp\apache\conf on Windows or in container/apache for Linux.

- Search "listen"

- Change default port 80 to another port: illustration => listen 8080

- Search servername : localhost:80 transform it to localhost:yourport

2) Edit the record " http-ssl.conf " ...

- Listen 443

- <VirtualHost _default_:443>

- ServerName www.example.com:443 or ServerName localhost:433

Replace them by with an other port number (8013 for this illustration) :

- Listen 8013

- <VirtualHost _default_:8013>

- ServerName www.example.com:8013 or ServerName localhost:8013

Save the record.

Restart the Apache Server.

Top PHP Framework in 2016

- No comments
PHP, known as the most prominent server-side scripting dialect on the planet, has advanced a great deal following the primary inline code bits showed up in static HTML documents. 



Nowadays designers need to fabricate complex sites and web applications, or more a specific unpredictability level it can require an excessive amount of investment and bother to dependably begin starting with no outside help, henceforth came the requirement for a more organized regular method for improvement. PHP structures give designers a satisfactory answer for that.

Why Use A PHP Framework
Yet, to start with, how about we investigate the top reasons why numerous engineers like to utilize PHP structures and how these systems can step up your advancement procedure. This is what PHP structures do: 

  • Make speed improvement conceivable 

  • Give very much sorted out, reusable and viable code 

  • Give you a chance to develop after some time as web applications running on systems are adaptable 

  • Save you from the stresses over low-level security of a site 

  • Take after the MVC (Model-View-Controller) design that guarantees the division of presentation and rationale 

  • Advance current web improvement practices, for example, object-situated programming devices
Top PHP Framework are: 

1. Laravel
2. Symfony
3. CodeIgniter
4. Yii 2
5. Phalcon
6. CakePHP
7. Zend Framework
8. Slim
9. FuelPHP
10. PHPixie

01 June 2016

How to change date/time in Linux

- No comments
At the point when Linux date/time isn't right, you should set to the right one.

Use underneath order to see the present date/time:



# date
# date -s “2 APR 2014 8:00:00”

or
# date –set=”2 APR 2014 8:00:00″

Galaxy C5 Besides shaped iPhone 6s are more qualified?

- No comments
Weeks ago, Samsung mobile Galaxy C5 seeing strong interest from consumers because it looks like the iPhone 6s. Apart from the appearance of the properties have an advantage?



Galaxy C5-screen Super AMOLED 5.2-inch display that can display images at a 1080 x 1920 pixel density and image 424 ppi.

For iPhone 6s still using an older screen 4.7-inch LCD display with 326 ppi density level 750 x 1334 pixel. What is unique is equipped with 3D function touch control easier.

Generate random number in php

- No comments
Many desultory number engenderers of older libcs have dubious or unknown characteristics and are slow. By default, PHP utilizes the libc desultory number engenderer with the rand() function. The mt_rand() function is a drop-in supersession for this. It utilizes a desultory number engenderer with kenned characteristics utilizing the »  Mersenne Twister, which will engender desultory numbers four times more expeditious than what the average libc rand() provides.


How to connect with database using php code

- No comments
Before we can connect to database with need to connect with our server first
PHP is easy to connect with database because this language is a powerful once and has alot of developer developed with php language. Example system maker oh something else ....