Thursday, November 7, 2019
php five
<?php
if (isset ($_POST ['b1'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a + $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<?php
if (isset ($_POST ['b2'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a - $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<?php
if (isset ($_POST ['b3'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a * $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<?php
if (isset ($_POST ['b4'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a / $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<form method="post">
<label> Enter first number </label>
<input type="number" name="num1"/>
</br>
</br>
<label> Enter second number </label>
<input type="number" name="num2"/>
</br>
</br>
<input type="submit" value="Add" name="b1"/>
<input type="submit" value="Sub" name="b2"/>
<input type="submit" value="Mulip" name="b3"/>
<input type="submit" value="Divid" name="b4"/>
</form>
if (isset ($_POST ['b1'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a + $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<?php
if (isset ($_POST ['b2'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a - $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<?php
if (isset ($_POST ['b3'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a * $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<?php
if (isset ($_POST ['b4'])){
function add() {
$a = $_POST ['num1'];
$b = $_POST ['num2'];
echo $a / $b ;
}
?>
<h3> <?php add () ?> </h3>
<?php
}
?>
<form method="post">
<label> Enter first number </label>
<input type="number" name="num1"/>
</br>
</br>
<label> Enter second number </label>
<input type="number" name="num2"/>
</br>
</br>
<input type="submit" value="Add" name="b1"/>
<input type="submit" value="Sub" name="b2"/>
<input type="submit" value="Mulip" name="b3"/>
<input type="submit" value="Divid" name="b4"/>
</form>
Aggregate funtion in mysql
AVG()
BIT_AND()
BIT_OR()
BIT_XOR()
COUNT(DISTINCT)
COUNT()
GROUP_CONCAT()
MAX()
MIN()
STD()
STDDEV_POP()
STDDEV_SAMP()
STDDEV()
SUM()
VAR_POP()
VAR_SAMP()
VARIANCE()
BIT_AND()
BIT_OR()
BIT_XOR()
COUNT(DISTINCT)
COUNT()
GROUP_CONCAT()
MAX()
MIN()
STD()
STDDEV_POP()
STDDEV_SAMP()
STDDEV()
SUM()
VAR_POP()
VAR_SAMP()
VARIANCE()
Set password in mysql xampp
You want to edit this file: "\xampp\phpMyAdmin\config.inc.php"
change this line:
$cfg['Servers'][$i]['password'] = 'WhateverPassword';
change this line:
$cfg['Servers'][$i]['password'] = 'WhateverPassword';
Wednesday, November 6, 2019
Remote Connection Guide
- Right Click on This PC
- Goto to Properties
- Click advanced system settings
- Click Remote
- Allow remote connection to this computer
- disallow the below one
- click ok
then
- type credential manager in search
- select windows credential
- remove all credential
- and make new one with your username and password in windows credential
then
- Goto another computer and type open remote desktop connection and type than name of that computer where you selected allow option and then type credential of your system thats it.
Wednesday, July 3, 2019
How to connect xamp server to all pc from one
goto C
goto Xamp
Goto Apache
Goto conf
Goto extra
Open httpd-xampp.conf
change this para into this:
old:
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig Limit
Require all granted
Order allow,deny
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
goto Xamp
Goto Apache
Goto conf
Goto extra
Open httpd-xampp.conf
change this para into this:
old:
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig Limit
Require all granted
Order allow,deny
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
Monday, June 24, 2019
Add column in sql
Alter table "Table_Name"
Add 'New_Column_Name' 'Datatype';
alter table product
Add quantity bigint;
Add 'New_Column_Name' 'Datatype';
alter table product
Add quantity bigint;
Drop column In sql
Alter table 'Table_name' drop column 'Column_Name'
alter table product drop column [Date];
alter table product drop column [Date];
Saturday, June 22, 2019
Wednesday, May 15, 2019
Saturday, May 4, 2019
Thursday, May 2, 2019
How to solve network sharing problem (There is no folder)
Press windows + r
type services.msc
Select Standard
Goto Dns Client
Select Automatic
Goto Function Discovery Resource
Select Automatic
Goto SSDP Discovery
Select Automatic
Tuesday, April 30, 2019
How to change default reader from windows 10 pdf files
goto start
select settings
select apps
select defaul apps
Click (choose default apps by for type)
now found .pdf (extension)
Change M-Edge to any pdf reader
now its changed into Fxit reader
Friday, April 12, 2019
Php 7 Login Template Form
<?php
if (isset($_POST['b1'])){
$a = $_POST['username'];
$b = $_POST['gender'];
$c = $_POST['count'];
}
echo "<h3> Answer is :".$a."</h3>";
echo "<h3> Answer is :".$b."</h3>";
echo "<h3> Answer is :".$c."</h3>";
?>
-------------------------------------------------------
-------------------------------------------------------
Template Html and Css
-------------------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<title>Login V10</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.ico"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100 p-t-50 p-b-90">
<form class="login100-form validate-form flex-sb flex-w" method = "POST" action="call.php" >
<span class="login100-form-title p-b-51">
Login
</span>
<div class="wrap-input100 validate-input m-b-16" data-validate = "Username is required">
<input class="input100" type="text" name="username" placeholder="Name">
<span class="focus-input100"></span>
</div>
<div class="wrap-input100 validate-input m-b-16" data-validate = "Password is required">
<label>Gender:</label>
<input type="radio" name="gender" value="male"> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<span class="focus-input100"></span>
</div>
<div class="wrap-input100 validate-input m-b-16" data-validate = "Username is required">
Country
</label>
<select name="count">
<option value="Pakistan">Pakistan</option>
<option value="England">England</option>
<option value="India">India</option>
<option value="Iran">Iran</option>
</select>
<span class="focus-input100"></span>
</div>
<div class="flex-sb-m w-full p-t-3 p-b-24">
<div class="contact100-form-checkbox">
<input class="input-checkbox100" id="ckb1" type="checkbox" name="remember-me">
<label class="label-checkbox100" for="ckb1">
Subscribe
</label>
</div>
<div>
<a href="#" class="txt1">
Forgot?
</a>
</div>
</div>
<div class="container-login100-form-btn m-t-17">
<input type="submit" name="b1" class="login100-form-btn" value="Get Data">
</div>
</form>
</div>
</div>
</div>
<div id="dropDownSelect1"></div>
<!--===============================================================================================-->
<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
<!--===============================================================================================-->
<script src="vendor/animsition/js/animsition.min.js"></script>
<!--===============================================================================================-->
<script src="vendor/bootstrap/js/popper.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!--===============================================================================================-->
<script src="vendor/select2/select2.min.js"></script>
<!--===============================================================================================-->
<script src="vendor/daterangepicker/moment.min.js"></script>
<script src="vendor/daterangepicker/daterangepicker.js"></script>
<!--===============================================================================================-->
<script src="vendor/countdowntime/countdowntime.js"></script>
<!--===============================================================================================-->
<script src="js/main.js"></script>
</body>
</html>
Friday, March 8, 2019
Wednesday, March 6, 2019
PHP 2nd class Add Code
<?php
if (isset($_POST['Add'])){
$a = $_POST['num1'];
$b = $_POST['num2'];
$c = $a + $b
?>
<h3> Answer is :<?php echo $c ?></h3>
<?php
}
?>
<form method="post">
<label> Enter First Number </label>
<input type="number" name="num1"/>
<br/>
<br/>
<label> Enter Second Number </label>
<input type="number" name="num2"/>
<input type="Submit" value="Add" name="Add"/>
</form>
Php two
<body>
<form action = "" method = "post">
<label> Enter name </label>
<input type = "text" name = "txtname"/>
<input type = "submit" value = "Save" name = "b1"/>
</form>
<?php
if(isset($_POST['b1'])){
$name = $_POST['txtname'];
?>
<h1> your name is : <?php echo $name ?> </h1>
<?php
}
?>
</body>
Monday, March 4, 2019
Php one
Php One
I
<html>
<body>
<?php
$a = 'Naptechpk';
?>
<center><h1 style="color:green;font-style: oblique;"><?php echo $a; ?></h1></center>
</body>
</html>
I
<html>
<body>
<?php
$a = 'Naptechpk';
?>
<center><h1 style="color:green;font-style: oblique;"><?php echo $a; ?></h1></center>
</body>
</html>
Wednesday, February 27, 2019
Tuesday, February 19, 2019
How to disable Windows Defender (Windows 10)?
- gpedit.msc
- Administrative Templates
- Windows Components
- Windows Defender
- Turn off Windows Defender
- Enable.
Sunday, February 3, 2019
What is CLR (Common Language Runtime)?
Ans: The CLR is a virtual machine component of .Net that is used to convert the CIL code to the machine language code.
- Common Intermediate Language
Which are the two core components of the .Net Framework which are integral to any application?
Ans: The two core components of the .Net Framework which are integral to any application or service development are the CLR and the .Net Framework class library.
What is .Net Framework?
Ans: The .Net Framework is an infrastructure that enables building, deploying and running different types of applications and services using.net technologies.
Allacote
In past years we didn't allocate enough funds to infrastructure maintenance.
in past years we didn't allocate enough Sadqa to cancer Hospital.
We didn't allocate enough Sadqa for poor people.
The C# language provides the feature of allocating and Releasing memory using automatic memory management.
in past years we didn't allocate enough Sadqa to cancer Hospital.
We didn't allocate enough Sadqa for poor people.
The C# language provides the feature of allocating and Releasing memory using automatic memory management.
Subscribe to:
Posts (Atom)
-
https://www.dropbox.com/s/tbhf74uagy4mxho/HEALTH%20INSURANCE%20SYSTEM.rar?dl=0 health insurance system new all people free and...
-
<?php if (isset ($_POST ['b1'])){ function add() { $a = $_POST ['num1']; $b = $_POST ['num2']; ech...
-
goto C goto Xamp Goto Apache Goto conf Goto extra Open httpd-xampp.conf change this para into this : old: Alias /phpmyadmin ...