Example #1
0
<?php

include "contactBD.php";
echo '<table border="1">';
echo "<tr><th width='100'>Name</th><th width='100'>Salary</th><th width='100'>CarName</th><th width='100'>Company</th></tr>";
$cdb = new ContactBD();
$cdb->employeeTable(1, 1);
$cdb->employeeTable(2, 2);
$cdb->employeeTable(3, 3);
$cdb->employeeTable(3, 1);
$cdb->employeeTable(2, 1);
$cdb->close();
echo "</table>";
<html>
	<body>
		<?php 
include "car_employee_class_function.php";
$name = $_POST["name"];
$designation = $_POST["desig"];
$salary = $_POST["salary"];
$carname = $_POST['carname'];
$model = $_POST['model'];
$db = new ContactBD();
//$db->insertElement($name,$designation,$salary);
//$db->insertCarElement($carname,$model);
$db->insertOptionId('<option value=\\"{$row"id"]}\\">');
?>
		<?php 
if (isset($_POST['userName']) && $_POST['userName'] != "") {
    echo "value set";
} else {
    echo "Please fill the form";
}
?>
		<form action="car_employee_presentation.php" method="post">
						 
						Name:
							<input type="text" name="name"/>
								<br><br>
					
						Designation:
							<input type="text" name="desig"/>
								<br><br>
						Salary:
Example #3
0
<?php

include 'contactDb.php';
$cdb = new ContactBD();
$cdb->insertIntoCDB("Variable", "Programming", "*****@*****.**", "NA");
$cdb->selectAll();
$cdb->close();