Enter Keyword Hear for Search This Blog

Wednesday, 14 October 2020

Registration form

 registration.php

<form action="action_page.php">
  <div class="container">
    <h1>Register</h1>
    <p>Please fill in this form to create an account.</p>
    <hr>

    <label for="email"><b>Email</b></label>
    <input type="text" placeholder="Enter Email" name="email" id="email" required>

    <label for="psw"><b>Password</b></label>
    <input type="password" placeholder="Enter Password" name="psw" id="psw" required>

    <label for="psw-repeat"><b>Repeat Password</b></label>
    <input type="password" placeholder="Repeat Password" name="psw-repeat" id="psw-repeat" required>
    <hr>

    <p>By creating an account you agree to our <a href="#">Terms & Privacy</a>.</p>
    <button type="submit" class="registerbtn">Register</button>
  </div>

  <div class="container signin">
    <p>Already have an account? <a href="#">Sign in</a>.</p>
  </div>
</form>

Tuesday, 15 September 2020

Update Query using Object Oriented Method

 Update Query using Object Oriented Method


<?php

$mysqli = new mysqli("localhost", "root", "", "Mydb"); 

if($mysqli === false){ 

    die("ERROR: Could not connect. " 

            . $mysqli->connect_error); 

$sql = "UPDATE data SET Age='28' WHERE id=201"; 

if($mysqli->query($sql) === true){ 

    echo "Records was updated successfully."; 

} else{ 

    echo "ERROR: Could not able to execute $sql. ". $mysqli->error; 

$mysqli->close(); 

?>


Output is :




Featured post

what is ajax?how to create ajax with php code

Ajax Introduction -  એજેક્સ નો ઉપીયોગ કરી ને તમે પેજ લોડ કાર્ય વિના બધી માહિતી મેળવી શકો.એજેક્સ થી તમે કોઈ પણ ડેટા ઝડપ થી મેળવી શકો છો...