Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

lllll

import genx 

code = genx.nitro()
print(code)
Comment

llllll

jjjjjjjjjjjjhhhhhhhhhhhhhhhhhhh
Comment

lll

<?php

include_once("__DIR__ . '/../connection/conn.php");

if(isset($_POST['submit'])){

    $username = mysqli_real_escape_string($conn, $_POST['username']);
    $email = mysqli_real_escape_string($conn, $_POST['email']);
    $pass = mysqli_real_escape_string($conn, md5($_POST['password']));
    $cpass = mysqli_real_escape_string($conn, md5($_POST['cpassword']));
    $role = 'user';
    $verification_status = '0';
    $otp = mt_rand(1111,9999);    //create 4 digits otp
    $activation_code = rand(time(),10000000);  //create a user unique id
 
    $select_users = mysqli_query($conn, "SELECT * FROM `userssystem1` WHERE email = '$email' AND password = '$pass'") or die('query failed');
 
    if(mysqli_num_rows($select_users) > 0){
       $message[] = 'user already exist!';
    }else{
       if($pass != $cpass){
          $message[] = 'confirm password not matched!';
       }else{
          mysqli_query($conn, "INSERT INTO `userssystem1`(username, email, password, role, otp, activation_code, verification_status) VALUES('$username', '$email' , '$cpass' , '$role', '$otp', '$activation_code' , '$verification_status')") or die('query failed to insert');
          $message[] = 'registered successfully!';
          header('location:verify.php?code='.$activation_code);
       }
    }
 
 }

?>
Comment

PREVIOUS NEXT
Code Example
Python :: call a function with prameters inm tkinter buttion 
Python :: allala rara 
Python :: is python procedural 
Python :: Math expressions with matplotlib 
Python :: Inpunt and output 
Python :: Clasificador Lineal 
Python :: discord.py embed length greater than 1024 
Python :: download image from url python 
Python :: can we use python functions in node 
Python :: break up word in clomun pandas 
Python :: how to for loop length print in python 
Python :: image.show pillow mac os 
Python :: check if any entries arte none 
Python :: generate random phone number python 
Python :: Random Average 
Python :: what does features = data.drop(["Survived", "Sex", "Embarked"], axis=1) do in python 
Python :: python get pc runtime 
Python :: assign more than one variable at a time on a single line in python 
Python :: what is a good django orm cookbook 
Python :: python interface kenee 
Python :: how to see what variable is closest to a higher element in python 
Python :: unhapppy man with monwy 
Python :: Python - Cómo cruda la cuerda 
Python :: longueur liste python 
Python :: non preemptive priority scheduling in c# 
Python :: python indexing 
Python :: permcheck codility python 
Python :: hello world with a variable in python 3 
Python :: list tuple dictionary, 
Python :: read file in python 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =