<?php
require 'config.php';
require 'class.mrkfPDO.php';
$fullname = mrkfPDO::GetOne("SELECT fullname FROM users WHERE id = 1");
echo $fullname;
$userInfo = mrkfPDO::GetRow("SELECT * FROM users WHERE id = 1");
print_r($userInfo);
$usersList = mrkfPDO::GetAll("SELECT * FROM users");
print_r($usersList[1]);
print_r($usersList[2]);
// Execute method for INSERT, UPDATE, DELETE
if(mrkfPDO::Execute("SQL INSERT, UPDATE or DELETE queryies"))
{
echo 'success message';
}
?>
|