Posts
Showing posts from 2022
elibrary Web application Demo using jsp/servlet and my sql
- Get link
- X
- Other Apps
How to insert view update and delete data using PHP and MySQL step by step with Graphics
- Get link
- X
- Other Apps
How to insert view update and delete data using PHP and MySQL step by step with Graphics Step 1 : create table in mySQl using query CREATE TABLE `users` ( `userid` text NOT NULL, `name` text DEFAULT NULL, `password` text DEFAULT NULL, `email` text DEFAULT NULL, `mobile` text DEFAULT NULL, `address` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; step 2: create a configuration file to connect mysql database with the php <?php session_start(); $con = mysqli_connect('localhost','root'); mysqli_select_db($con,'fyp'); if(mysqli_connect_error()) { die("DB Connection Failed"); } ?> Step 3: Create from for insert operation name as AddUsers.php and paste the code <?php include 'config.php';?> <?php if(isset($_POST['done'])) { if(!empty($_POST)) { if(!empty($_POST['userid'])&& !empty($_POST['password'])) { $userid = $_POST['user...
Product Management System using Array in C++
- Get link
- X
- Other Apps
Product Management System using C++ Step 1: Create a product class #include<iostream> #include<string> using namespace std; class Product { int id; string name; int price; public: Product() { id=0; name=""; price=0; } Product(int i,string n,int p) { id=i; name=n; price=p; } void setID(int i) { id=i; } void setName(string n) { name=n; } void setPrice(int p) { price=p; } int getID() { return id; } string getName() { return name; } int getPrice() { return price; } void display() { cout<<"\n Product ID: "<<id; cout<<"\n Product Name: "<<name; cout<<"\n Product Price: "<<price; } bool addProduct(int i,string n,int p) { id=i; name=n; price=p; return true; } }; Step 2: use this product class in main function #include<iostream> #include<string> #include...