This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$con = new mysqli("localhost","root","","database"); | |
$result = array(); | |
if($con) | |
{ | |
$stmt = $con->query("select * from android_data"); | |
//$stmt = $con->query("select * from tbl_invoice_products"); | |
if($stmt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "conn.php"; | |
if(isset($_POST["username"])) //always use isset function to skip unwanted request and error | |
{ | |
$query = mysqli_query($conn, "select * from android_data where username='$user_name'"); | |
if ($query) { | |
while ($row = mysqli_fetch_array($query)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$con = new mysqli("localhost", "root", "password", "database"); | |
if($con) | |
{ | |
$username = "use124"; | |
$password = "pass123"; | |
$sql = "select * from userdata where username ='$username' and password = '$password'"; | |
$stmt = $con->query($sql); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$con = new mysqli("localhost", "root", "password", "database"); | |
if($con) | |
{ | |
$id = "123"; | |
$sql = "select * from table where id='$id'"; | |
$stmt = $con->query($sql); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I use the first | |
ββ BEGIN LICENSE ββ | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
@ filter email | |
@ check email | |
@return json response | |
developer: Ariful Islam | |
website: phpdark.com | |
email: [email protected] | |
github.com/arif98741 | |
expert in php,laravel,codeigniter,node,angular |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//phpdark.com | |
//[email protected] | |
if (isset($_POST['login'])) { | |
$con = new mysqli("localhost","root","","database"); //database connection | |
if ($con) { | |
$username = mysqli_real_escape_string($con, $_POST['$username']); | |
$password = mysqli_real_escape_string($con, $_POST['$password']); | |
$hashed_password = password_hash($password, PASSWORD_DEFAULT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Support\Facades\DB; //must need to add during work with database | |
use App\Http\Controllers\Controller; | |
class UserController extends Controller | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = realpath(dirname(__DIR__)); | |
include_once 'DB.php'; | |
include_once 'Session.php'; | |
include_once $path . '/helper/Helper.php'; | |
class Invoice { | |
private $dbObj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Me_Class{ | |
public function content() | |
{ | |
global $conn; | |
$this->sql = "select * from question"; | |
$result = $con->query($this->sql); | |
$question = array(); | |
while ($rows = $result->fetch_array()) { |