Thursday 3 October 2019

Delete function using PHP Prepare statement using MySQL

Delete function using PHP Prepare statement using MySQL

function deleteBreaking($id)
{
ini_set('display_errors',1);
ini_set('display_startup_errors', 1);
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
  $stmt = $this->conn->stmt_init();
  if ($stmt->prepare("delete from  breaking_news where id=?"))
  {
   $stmt->bind_param("i",$id);     
   $stmt->execute() or die("<h1>Error</h1>".mysqli_error($this->conn));       
   $stmt->close();   
   return "<span class='g-successMsg'>Breaking News Deleted Successfully</span>";;
  }
  else
  {
  
   return "<span class='errorMsg'>Oops ! Error in Deleting breaking news, Please try again later</span>";
  }  
}

Sunday 29 September 2019

Sloved : July, 2016 M1-R4: IT TOOLS AND BUSINESS SYSTEMS

Sloved : July, 2016 M1-R4: IT TOOLS AND BUSINESS SYSTEMS (NIELIT O Level)

Multiple Choice


1.1 :  A
1.2 : B
1.3 : A
1.4 : C

Monday 23 September 2019

July, 2016 M1-R4: IT TOOLS AND BUSINESS SYSTEMS

July, 2016 M1-R4: IT TOOLS AND BUSINESS SYSTEMS Solve

1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)


1.1 : The basic architecture of computer was developed by
A)           John Von Neumann
B)           Charles Babbage
C)           Blaise Pascal
D)           Gorden Moore
Answer : 

1.2 : Which protocol provides e-mail facility among different hosts?
A)           FTP
B)           SMTP
C)           TELNET
D)           SNMP
Answer :

Monday 9 September 2019

Light Box Image Gallery


Light box image gallery

More than 50 percent light box gallery uses this.


<html>
<head>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
    <link href="lightbox.min.css" rel="stylesheet" />
    <script src="lightbox-plus-jquery.min.js"></script>
    <title>Girfa Light Box</title