smartdroid

Saturday, 30 December 2017

Guide | Creating a Simple Dynamic Web Sites with PHP and MySQL.

Guide | Creating a Simple Dynamic Web Sites with PHP and MySQL.

Creating Dynamic Website With PHP and MySQL. In this guide, you can learn how to create a simple dynamic website using PHP and MYSQL. The web created here is very simple because of learning purpose. By creating a dynamic website users and servers can interact in a complex way. By using the browser, the user can change a certain page. The requests from users will be processed by the server so as to display a different information in accordance with the flow of the program. Generally, dynamic web pages have different databases. In the dynamic web, there are a varies data and information depending on the input of each client. As well as documents that can be read by the client will be different from the documents stored on the server.

Prerequisite.

  1. Download and install XAMPP on your PC. why we use XAMPP? Because XAMPP creates a reliable source to set up the right environment for PHP programming in a fast way.
  2. Download and install Notepad ++, we will use Notepad++ to create and write PHP code. Here

Guide to Creating Dynamic Web Site.

  1. Once XAMPP web server is already installed, now launch the XAMPP control panel.
  2. Then, Start the MySql Module from the current window.
    xampp control panel
    XAMPP control panel
  3. Type localhost at the browser address bar to check that XAMPP working on your machine.
  4. If Xampp is already running, continue to create a PHP file.
  5. Create a new project on localhost, create a folder and rename it to dynamic_php at the following folder.
    • C:/xampp/htdocs/dynamic_php
  6. Now, create or type the PHP code below in Notepad ++. Save it with the name index.php
  7. <!DOCTYPE html>
    <html>
    <head>
    <title>creating dynamic website | Guidebelajar.blogspot.com</title>
    <!-- menghubungkan dengan file css -->
    <link rel="stylesheet" type="text/css" href="style.css">
    <!-- menghubungkan dengan file jquery -->
    <script type="text/javascript" src="jquery.js"></script>
    </head>
    <body>
    <!--
    Author : asyraf_singh
    Site : guidebelajar.blogspsot.com
    -->
    <div class="content">
    <header>
    <h1 class="judul">Asyraf_singh</h1>
    <h3 class="deskripsi">Creating A Dynamic Website with PHP & MySql</h3>
    </header>

    <div class="menu">
    <ul>
    <li><a href="index.php?page=home">HOME</a></li>
    <li><a href="index.php?page=tentang">About</a></li>
    <li><a href="index.php?page=data">Data</a></li>
    </ul>
    </div>

    <div class="badan">


    <?php
    if(isset($_GET['page'])){
    $page = $_GET['page'];

    switch ($page) {
    case 'home':
    include "pages/home.php";
    break;
    case 'tentang':
    include "pages/about.php";
    break;
    case 'data':
    include "pages/data.php";
    break;
    default:
    echo "<center><h3>Sory .. pages not found !</h3></center>";
    break;
    }
    }else{
    include "pages/home.php";
    }

    ?>

    </div>
    </div>
    </body>
    </html>
  8. To make your dynamic web page look more interesting, please create the following css file on your Notepad ++ and then save it with name style.css
  9. body{
    background-color:#d3dce3;
    font-size:16px
    color:#444;
    font-family: aqua;
    }

    .content{
    width: 65%;
    margin: 10px auto;
    }

    /*header*/
    header{
    background-color: #83b2d6;
    padding: 20px 10px;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    }

    header h1.judul,
    header h3.deskripsi{
    text-align: center;
    }

    /*menu navigasi*/
    .menu{
    background-color: #2685cc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
    }

    div.menu ul {
    list-style:none;
    overflow: hidden;
    }


    div.menu ul li {
    float:left;
    text-transform:uppercase;
    }

    div.menu ul li a {
    display:block;
    padding:0 20px;
    text-decoration:none;
    color:#01f2f9;
    font-family: sans-serif;
    font-size:13px;
    font-weight:400;
    transition:all 0.3s ease-in-out;
    }

    div.menu ul li a:hover,
    div.menu ul li a.hoverover {
    cursor: pointer;
    color:#fff;
    }


    div.badan{
    background-color: #d9ddee;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    }

    div.halaman{
    text-align: center;
    padding: 30px 20px;
    }
  10. At this step, you have successfully created a simple dynamic website template.
  11. Then, go to C:/xampp/htdocs/dynamic_php and create a folder, rename this folder with pages.
    creating dynamic website
    creating a dynamic website
  12. Then, we will create some PHP pages that are placed in the pages folder.
  13. Here is the page that we will create.
    • home
    • about
    • data
  14. Now, create or type the following PHP code on Notepad ++ to create home.php
  15. <div class="pages">
    <h2>Home</h2>
    <p>Wellcome to my website</p>
    </div>
  16. Then, create about.php
  17. <div class="pages">
    <h2>About Us</h2>
    <p>This is About Us page</p>
    <p>this is my personal dynamic web pages</p>
    </div>
  18. Now, create or write the following PHP code to create data.php
  19. <div class="pages">
    <h2>Data Page</h2>
    <p>Hello.. this is the data page</p>
    </div>
  20. Now test your page, it's work or not. Type the following URL at the browser address bar.
    • http://localhost/dynamic_php/
  21. If successful, you will see the web page as shown in the picture below.
    creating dynamic website
    creating a dynamic website

Wednesday, 27 December 2017

Guide | How to Root LG V30 (H930 for Europe) & Flash TWRP recovery.

Guide | How to Root LG V30 (H930 for Europe) & Flash TWRP recovery.

Root LG V30. Now you can root your LG V30 using this method. So, if you need any information about guide on how to root your LG V30, you can follow this guide. Before rooting you have to flash TWRP recovery on your phone. If you are a beginner in terms of recovery, now we will explain about TWRP recovery. TWRP or TeamWin Recovery Project is a special custom recovery for Android phones. This recovery offers a complete of features that the stock recovery doesn’t. Even, you can back up or restore firmware, flash the phones with third-party software/ROMs, or wipe the partition. Including flashing a zip file to rooting LG V30 phone.

This is not an official recovery, the following TWRP recovery is designed for LG V30 and has been brought by jcadduono as an XDA Recognized Developer. This recovery works on the LG v30, but not completely tested. Here is the list of confirmed working features (OTG storage, MTP, ADB, Flashable zip installer, Mass Storage mode, Nandroid Backup and Restore, Brightness)

The following guide given here are very tricky and may cause your LG V30 phone to become unstable. So, if you understand what you are doing, may you can continue to proceed to root your device.

Take a note, the following guide and the TWRP recovery which is on the download link below are only meant for the Europe (H930) and Italy (H930G) variants of the V30. Make sure to check your device model, and don't attempt to install it on any other model.
Root and TWRP LG V30
Root and TWRP LG V30

Prerequisite.

  1. You need to unlock the LG V30 phone’s bootloader using the official method.
  2. Then download TWRP recovery (twrp-3.1.1-0-h930-by-jcadduono.img) Here 
    • Copy the TWRP file to the extracted Android SDK tools folder.
    • Rename it to twrp-v30.img
  3. Download DM-verity check disabler (no-verity-opt-encrypt-6.0.zip) Here
    • Copy this file to the SD card root directory.
  4. Enable USB debugging.
  5. Download and Install LG V30 drivers on your PC. Here
  6. Download ADB and fastboot installer or Android SDK tools Here
  7. Before proceeding ahead, we highly recommend taking a full backup of your LG device.

Flashing TWRP recovery LG V30 Guide.

  1. Extract all Android SDK tools zip file at C:\adb.
  2. Now, go to the folder where the files are present (Example: C:\adb).
  3. Then, On an empty space inside this folder, press and hold the SHIFT button and right-click. Select “Open command window here” or “Open PowerShell window here” from the menu that appears.
    open command window here
    open command window here
  4. Enable OEM Unlock and USB Debugging on your LG V30 now if it’s not done already.
  5. Then, plug the LG V30 to the PC using the original USB cable. Then type the following command at the command prompt. (make sure USB Debugging is enabled)
    • adb devices
  6. Then, the command shall return an LG V30 device ID.
  7. Now, reboot your V30 into fastboot mode. How to reboot LG V30 into fastboot or bootloader mode? You can type the following command to boot your device into bootloader mode.
    • adb reboot bootloader
  8. Once your LG V30 enters bootloader mode, install TWRP recovery on LG V30 using the following command:
    • fastboot flash recovery twrp-v30.img
  9. Once the flashing TWRP process is done, you need to reboot your LG V30 into TWRP recovery.
  10. If we boot into Android OS, then the system will automatically remove TWRP, so let’s boot into TWRP from here. For this:
    • Press and hold both Volumes down first, and then also press and hold the Power button. 
    • When you see LG logo on screen, quick release for one second and re-hold the Power button 
    • While do not release the Volume down button at all. A Factory Data reset screen will appear, 
    • Now release both Power and Volume down buttons. 
    • Now, boot into TWRP, and for that — it’s weird — do a factory reset here using the instructions on the screen. (Select Yes two times.) This will not reset your device actually, but this will boot your device into TWRP recovery, and TWRP will ignore the reset request. Our job was to boot into TWRP, and this Factory Reset trick gets us that.
  11. Swipe at the bottom to allow for modifications and get to TWRP home screen.
  12. Then, install the DM-verity check disabler file to disable the DM-verity check by Android OS, and safely boot your device without issues.
  13. To do this, you need to tap install button from the TWRP main menu.
  14. In the end, you need to select Reboot system option to restart the device on Android OS. Done

Root Instruction.

Once TWRP successfully installed, now we can root LG V30 using Magisk or SuperSU.

Root LG V30 with SuperSU.

  1. Download the latest SuperSu from Here | or download magisk from Here
  2. Then, copy SuperSu to the internal memory root directory.
  3. Now, boot your LG V30 device into TWRP recovery. How to boot LG V30 into TWRP recovery?
    • Press & hold Volume down + Power button.
    • Release power button for a second when the LG logo comes up on the screen.
    • Then you will see factory reset menu.
    • From here, select ‘Yes’ two times, and you will boot into TWRP.
  4. Then, tap on Install and select the SuperSU zip file that you copy to your phone in Step 1 above.
  5. After selecting one of the .zip files above, Swipe to Confirm Flash on the bottom of the screen to begin the flashing zip file.
  6. Once SuperSU is flashed, you’ll get Reboot System option, select it.

Tuesday, 26 December 2017

Guide | How to Root Android Sony Xperia XZ1 Using Magisk

Guide | How to Root Android Sony Xperia XZ1 Using Magisk.

Root Xperia XZ1. At this time we will show you how to Root Sony Xperia XZ1 device. The following root tutorial is sourced from N1ghtr08d as the senior member of the XDA discussion forum. here is a bit information about the device we will use for the root experiment. Sony Xperia XZ1 Released 2017, September. Comes with 5,2 Inch IPS LCD capacitive touchscreen, 16M colors. Powered by Octa-core (4x2.35 GHz Kryo & 4x1.9 GHz Kryo) CPU, Qualcomm MSM8998 Snapdragon 835 chipset, Adreno 540 GPU. Xperia XZ1 run on Android 8.0 (Oreo).

If you decide to root your Xperia XZ1 with this method, you will lose your DRM keys. As a result, you won’t be able to use first-party features like X-Reality or Track ID. To get root access on Xperia XZ1 you need to magisk and flash a modified version of TWRP and that you use a custom kernel.

Let's start this guide.
Root Android Sony Xperia XZ1
Root Android Sony Xperia XZ1

Prerequisite.

  1. Unlock Your Device Bootloader 
  2. Enable Developer option
  3. Enable ADB debugging.
  4. Download modpunk's port of TWRP. Here 
  5. Then, D0wnload aledoom's port of the Andro+ kernel. Here
  6. D0wnload Magisk-v14.5(1456).zip Here 
  7. D0wnload ADB Fastboot tool and Extract the ADB Fastboot Tool anywhere on your computer. eg. desktop.

Instructions.

Flash TWRP recovery.

  1. Connect the Xperia XZ1 to the computer.
  2. Then, Open the Extractor ADB and Fastboot folder and Open Command Window by pressing Shift Key + Right Mouse Click.
    open command window
    open command window
  3. Then, Reboot the Xperia XZ1 into Bootloader – Type the following command at the command prompt.
    • adb reboot bootloader
  4. Or you can use the 2nd method to boot your Sony Xperia XZ1 into bootloader.
    • Turn off the phone.
    • Then, press and hold the Volume Up and attach a USB Cable from your PC
    • it will boot into the bootloader. 
    • Then, the LED will be blue.
  5. Now your Xperia XZ1 will boot into bootloader.
  6. Copy all prerequisite files above (recovery and the boot image) into the ADB and fastboot folder.
  7. Then, type the following command to flash boot image and recovery.
    • fastboot flash recovery twrp-3.2.0-0-poplar-patchlevel-2017-11-05.img 
    • fastboot flash boot boot.img fastboot 
    • flash FOTAKernel boot.img
  8. This will take a time until the process is completed.
  9. Once the process is done, type the command to reboot your Xperia XZ1.
    • fastboot reboot.
  10. Now, Reboot the system and then power off the Xperia XZ1.
  11. Finish.

Install Magisk to Root device via TWRP.

  1. Copy latest magisk to the phone root directory.
  2. Then Power off your phone.
  3. Boot your phone into TWRP recovery. How to boot Sony Xperia XZ1 into TWRP recovery?
    • Press and hold the power button + the volume down button
    • Release the Power button when your phone vibrates once.
    • But, keep holding the volume down button until you see the TWRP splash screen.
  4. Once your phone enters the TWRP recovery screen,  It will ask you for your password to decrypt the data partition.
  5. You need to enter the PIN number or password you use on your phone lock screen.
  6. But, if you don't use any lock screen security then the password is: default_password
  7. From the TWRP main menu tap Install.
    TWRP Sony Xperia XZ1
    TWRP Sony Xperia XZ1
  8. Then, browse where you save magisk.
  9. Now, swap to start flashing magisk to your phone.
  10. Once TWRP successfully flashes magisk to your device, now select reboot to the system.
  11. Finish.

Saturday, 23 December 2017

How to Root & Flash TWRP HTC Desire 10 Lifestyle Android 6.0 Marshmallow.

How to Root & Flash TWRP HTC Desire 10 Lifestyle Android 6.0 Marshmallow.

Root HTC Desire 10 Lifestyle. Hy guys. the following guide will show you how to root and flash TWRP recovery HTC Desire 10 Lifestyle. So, if you need this information now, you can try to apply this guide to your HTC Desire 10 Lifestyle phone. You can find many solutions to all the problems when flashing TWRP  recovery through the source link

Step By Step Root HTC Desire 10 Lifestyle.

  1. Make sure your phone is HTC Desire 10 Lifestyle in order to follow this guide. Because this guide only applies to the HTC Desire 10 Lifestyle device.
  2. Make sure your HTC phone is bootloader unlocked. if not. you can open the following link, or read the guide here.
  3. Turn on OEM Unlock developer options menu, make sure OEM Unlock is turn on to get unlock token later.
  4. Then, D0wnload the TWRP Recovery for HTC Desire 10 Lifestyle.
    • Visit this link to d0wnload the TWRP.
  5. Reboot your phone into bootloader.
  6. Then, you need a switch to fastboot mode and use the command to boot the recovery
    • fastboot boot twrp-3.2.1-0-a56dj.img
  7. But, if you want to install TWRP as the main recovery please use the following command.
    • fastboot flash recovery twrp-3.2.1-0-a56dj.img
  8. Once TWRP successfully installed on HTC Desire 10 Lifestyle, now you can do everything on your phone. For example, root your phone.

Root HTC Desire 10 Lifestyle.

  1. If you have successfully installed TWRP recovery, now it's time to root your device.
  2. Copy SuperSU into an internal memory card.
  3. Boot your HTC Desire 10 Lifestyle into recovery mode.
  4. Now, flash or install SuperSU via TWRP recovery menu.

Monday, 18 December 2017

Guide | Hard Reset Lenovo K8 Note to Remove Forgotten Password or Unlock Pattern.

Guide | Hard Reset Lenovo K8 Note to Remove Forgotten Password or Unlock Pattern.

Hard Reset Lenovo K8 Note. If you have problems on Lenovo K8 note like forgot the password, or locked by the pattern. You can read the following guidelines to solve the problem. Because the following guidelines will explain how to do a hard reset on Lenovo K8 Note. By performing a hard reset, then all the settings that have been created by the user will be deleted. and restored to the default factory settings. So the password or pattern lock screen that has been created previously will also be deleted and set to clear.

Hard reset is also called factory reset or master reset. It will erase all data stored in the internal phone memory. We strongly recommend to backup all data before doing a hard reset. Hard reset method on Lenovo K8 notes is emphasized on the use of the external button. That is, we do not need to access the settings menu. 

If you are ready to perform a hard reset on Lenovo K8 note, now it's time to start.

How to Hard Reset Lenovo K8 Note?

  1. Power Off Lenovo K8 Note.
  2. Then, turn on it again by press and hold the following button simultaneously.
    • Power Button + Volume Up button
  3. Now, release all button when your phone asked to select boot mode.
  4. Now, select recovery and confirm it using the Power button.
  5. Then, you will see a Lenovo Logo comes up on your screen.
    Lenovo K8 Note Logo
    Lenovo K8 Note Logo
  6. Just wait for a second. Your screen will show green Android logo with no command.
    no command
    no command
  7. Now, press and hold the following button at the same time to enter Android system recovery.
    • Power Button + Volume UP + Volume Down
  8. Now, your phone enters Android recovery menu.
  9. From this menu, you can navigate all menu using volume button and confirm with power button.
  10. Now, highlight wipe data/factory reset and press power button
    wipe data / factory reset lenovo k8 note
    wipe data/factory reset Lenovo k8 note
  11. Then, scroll down and highlight yes ---- delete all user data.
  12. The system will start to erase all user data, once it completed back to the Android recovery main menu and highlight reboot system now. 
  13. Now, your phone will reboot, and the password or security pattern lock screen will be gone.

How to Root & Install TWRP Recovery Lenovo K8 Plus

How to Root & Install TWRP Recovery Lenovo K8 Plus.

Root Lenovo K8 Plus. The following guidelines will show you how to root and flash TWRP recovery Lenovo K8 Plus.  We made the following guidelines as simple as possible, to be understood by everyone. Even if you are a beginner in getting to know root. Many methods can be used for root Lenovo K8 Plus, but the following method has a minimum risk and guarantees worked. Ok, now we will start to root the phone released in 2017, September.

Make sure to backup all user data before root proceeding. This action will delete all user data stored in your phone memory. We will flash TWRP recovery for Lenovo K8 Plus with the recovery zip file.

Prerequisite.

  1. Download and extract ADB Fastboot tool. Here.
  2. Download TWRP Recovery 3.1.10 for Lenovo K8 Plus. Here
  3. Download Magisk-v13.5(1350).zip. Here
  4. Download the latest SuperSU.zip from Here.

Instruction Guide.

Flashing TWRP recovery.

  1. Rename TWRP Recovery 3.1.10 for Lenovo K8 Plus to twrp.img
  2. Then copy or move twrp.img to the extracted ADB & fastboot folder.
  3. Now, go to the ADB & fastboot extracted folder.
  4. Then, double-click MAF32.exe to open command prompt windows.
  5. Now turn your Lenovo K8 Plus into fastboot mode. How to turn on Lenovo K8 Plus into fastboot mode?
    • Turn Off your phone.
    • Once it completely powers off now turn it on.
    • You need to turn on by pressing the following button at the same time.
      • Power button + Volume Down 
    • Wait for 10-15 sec
    • Then release the volume button
    • Now, press volume button and select recovery.
    • Now, press power button and then it will display no command
    • Now press power  + Volume Up and release only Volume UP.button and now you are in recovery mode 
    • Then, select option reboot to reboot into bootloader
  6. Then, connect your phone to the computer via original USB cable.
  7. Back to the step no.4 above. (now you are at the command prompt windows)
  8. If you cannot turn on your phone into fastboot mode using the step 5. above. Try to use this command.
    • How to turn on Lenovo K8 Plus into fastboot mode using the fastboot command.
      • From the command prompt,  type the following command then press the enter button.
        • adb reboot bootloader
  9. Once your device successfully enters fastboot mode. Now type the following command at the command prompt.
    • fastboot devices
  10. Now type the following command to start flashing twrp.img to your phone.
    • fastboot flash recovery twrp.img
  11. Then type the following command to reboot your Lenovo K8 plus into TWRP recovery.
    • fastboot boot twrp.img
  12. Now, your phone will reboot into TWRP recovery.

Root Lenovo K8 Plus.

  1. Copy Magisk-v13.5(1350).zip to the SD card root directory.
  2. From step no. 12 above, tap install.
    flash twrp lenovo k8 plus
    flash twrp Lenovo k8 plus
  3. Then, select storage where you save Magisk-v13.5(1350).zip file.
  4. Once it found, tap the file.
  5. And now swap to confirm flash the zip file into Lenovo K8 Plus.
  6. Wait for the process until finished.

Saturday, 16 December 2017

Hard Reset OnePlus 5T to Unlock Security Pattern Lock Screen or Forgotten Password.

Hard Reset OnePlus 5T to Unlock Security Pattern Lock Screen or Forgotten Password.

Master Reset OnePlus 5T. The following guide will show you how to perform the hard reset or master reset on OnePlus 5T. hard reset on Android phone also calls with a factory reset. It will restore all user setting to default factory setting and wipes all user data. So, if you have any issue with lock screen the hard reset will help you to fix it. There are several methods to do a hard reset OnePlus 5T. First, you can use the software menu located on the settings menu. second, you can perform the hard reset using external phone button. generally, this button is on the side phone body. you can use one of these methods to perform a hard reset on OnePlus 5T, depending on the locked condition of your mobile phone.

Warning. Hard Reset OnePlus 5T will erase all of your personal data. guidebelajar not responsible for any damages. Perform a hard reset on your own responsibility only.

Hard Reset OnePlus 5T Guide (Hardware Button)

  1. Power off phone
  2. Backup everything stored in phone memory
  3. Turn on phone press and hold the following button at the same time.
    • Power button + volume down button.
    reset OnePlus 5T
    reset OnePlus 5T
  4. Release the volume down only when the OnePlus logo comes up, then immediately press it again.
  5. If your Oneplus 5T is locked by pattern lock, you must draw it to unlock. 
  6. Once it successfully approved, now your phone will enter recovery menu.
  7. From the recovery menu, tap English
    reset OnePlus 5T
    reset OnePlus 5T
  8. Then tap wipe data and cache
  9. Now, tap Erase everything (music, pics, etc)
  10. Then tap this cannot be undone, continue?
  11. Now, your Oneplus 5T will wipe everything to restore default factory settings.
  12. finish.

Hard Reset OnePlus 5T via Software Menu.

  1. Go to settings
  2. Then tap Backup&reset
  3. Now tap factory data reset.
  4. Tap System data
  5. Tap Reset Phone.
  6. Tap Erase everything