Saturday, January 23, 2016

Bangla PHP OOP and MySQLi CRUD Tutorial (Part-01)

header.php
<?php
 $fonts = "verdana";
 $bgcolor = "#444";
 $fontcolor = "#fff";
?>

<!doctype html>
<html>
<head>
 <title>PHP OOP CRUD</title>
 <style>
  body{font-family:<?php echo $fonts;?>}
  .phpcoding{width:900px; margin: 0 auto;
   background:<?php echo "#ddd" ?>;}
  .headeroption, .footeroption{background:<?php echo $bgcolor; ?>;
   color:<?php echo $fontcolor; ?>;text-align:center;padding:20px;}
  .headeroption h2, .footeroption h2{margin:0;font-size:24px}
  .maincontent{min-height:400px;padding:20px;font-size:18px}
  p{margin:0}
 input[type="text"]{width:238px;padding:5px;}
 select{font-size:18px;padding:2px 5px;width:250px;}
 .tblone{width:100%;border:1px solid #fff;margin:20px 0}
 .tblone td{padding:5px 10px;text-align:center;}
 table.tblone tr:nth-child(2n+1){background:#fff;height:30px;}
 table.tblone tr:nth-child(2n){background:#f1f1f1;height:30px;}
 #myform{width:400px;border:1px solid #fff;padding:10px;}
 </style>
</head>
<body>

<div class="phpcoding">
 <section class="headeroption">
  <h2><?php echo "CRUD Using OOP PHP and MYSQLi"; ?></h2>
 </section>
  <section class="maincontent">
 
index.php
<?php include 'inc/header.php'; ?>
 
<?php include 'inc/footer.php'; ?>
footer.php
 </section>
<section class="footeroption">
 <p>© <?php echo date("Y"); ?> Training with live project</p>
  <h2><?php echo "www.trainingwithliveproject.com"; ?></h2>
 </section>
</div>
</body>
</html>

Code for Database Class and config.php :- Check Here.

How to practice tutorials…

  • Make a team with your friends (Member should be 4/5).
  • Start to practice one tutorial series along with them.
  • Don’t try to collect source code. Type the code while watching the tutorial.
  • If you face any problem, post the question in the Forum with the error codes.
  • Share that question Link with your friends or team members to solve quickly.
  • Discuss the problem in the Forum along with others - Video Guidelines.