Posts

How to insert view update and delete data using PHP and MySQL step by step with Graphics

 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++

Image
 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...

Learn PHP in just 24 minutes

Image

How to make heart with name in C++

Image
  How to make heart with your name using C++  Solution:   #include <stdio.h> #include <string.h>  #include <iostream>  using namespace std; int main() {          char name[50];     int len; int i, j, n;     cout<<"Enter your name:";          gets(name);       cout<<"Enter value of n : ";          cin>>n;     len = strlen(name);          for(i=n/2; i<=n; i+=2)     {         for(j=1; j<n-i; j+=2)         {             cout<<" ";         }           for(j=1; j<=i; j++)         {             cout<<"*";         }           for(j=1; j<=n-i; j++) ...

How to insert image into table using C# in ASP.net |Part 1

Image

Flip eBook Generator Demo 2021 in Hindi|Urdu

Image

Link list using C++ improved version 2021

Image
 Link list using C++ improved version 2021 source code: #include<iostream> using namespace std; class Node  {  private:   int object;   Node * nextNode;//address of next node  public:   int get() { return object; };   void set(int object) { this->object = object; };   Node * getNext() { return nextNode; };   void setNext(Node * nextNode) { this->nextNode = nextNode; };  }; ////////////////////list class////////////////// /* The List class */  class List  {  public://methods or function  //declare the functions  List(); //constructor  void add (int addObject); //add new object  int get(); //get node  bool next();   friend void traverse(List list);   friend List addNodes(); //add new node  ////  // position currentNode and lastCurrentNode at first element  void start()  { ////headNode currentNode lastCurrentNode ...