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>