Skip to content

Commit

Permalink
Create example.php
Browse files Browse the repository at this point in the history
  • Loading branch information
IrfanGhuori authored Aug 23, 2024
1 parent 65344a5 commit 0c96fbf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
require_once("vendor/autoload.php");
use Src\Connect_me;
use Src\create_session;

$test = new Connect_me();

$qry = $test->conn->prepare("SELECT * FROM `your_table` WHERE 1");
$qry->execute();
$row = $qry->fetch(PDO::FETCH_OBJ);
//echo $row->acnt_user_code;

// Session Example
$session = new create_session();
$session->set('name', 'John');

if(isset($_SESSION['name']))
{
echo $_SESSION['name'];
}

0 comments on commit 0c96fbf

Please sign in to comment.