Showing posts with label sg. Show all posts
Showing posts with label sg. Show all posts

Saturday, October 26, 2019

WooCommerce Tutorials From Scratch in Hindi



In this video, we will learn to install and setup #WooCommerce on #Wordpress and create an eCommerce site what are the #plugins: https://youtu.be/wkQ_3XLMcMQ List of all Plugin in Wordpress: https://wordpress.org/plugins/

Thursday, October 24, 2019

Sunday, October 20, 2019

Automatically Sending Welcome Email to new user or subscriber in WordPress | MailPoet3






In this video you will learn how automatically send welcome emails to new users or subscribers in WordPress using mailpoet3. The mails will be sent automatically as soon as the subscriber is added. #wordpress #mailpoet3 #welcomeemails

Saturday, October 19, 2019

Create A Blogging Website without Code from Scratch in 15 mins in Hindi



In this video, you will learn how to setup a blog without coding using WordPress hosting. Firstly, we will buy hosting using Godaddy then will set up WordPress and login into the dashboard and then set up the title of the site and set up the theme To learn Blogging check my video tutorial: https://www.youtube.com/watch?v=Poirc... #SetUp #Blogs #WithoutCoding

Thursday, October 17, 2019

Create a eCommerce site without coding in 15 mins in hindi




In this video, you will learn how to setup E-commerce or Shopping Sites without coding using WordPress hosting. Firstly, we will buy hosting using Godaddy then will set up WordPress and login into the dashboard and then set up the title of the site and set up the Woocommcerce To learn Woocommerce check my video tutorial: https://www.youtube.com/watch?v=O0ZZ-... #SetUp #EcommerceSite #WithoutCoding

Sunday, October 6, 2019

WP SEO Structure Data Schema in Wordpress


In this video, we will learn how to begin with SEO structured data in Wordpress wooCommerce in Hindi. We will learn to configure Wp SEO Structured data plugin and how we can add the keyword, description and SEO title in Wordpress post, page and products yoast seo video: https://youtu.be/hIl6dneOfAE All in one SEO: https://youtu.be/skGvng_88h0 #SEO #WordPress #StructuredData

 In an SEO context, "structured data" usually refers to implementing some type of markup on a webpage, in order to provide additional detail around the page’s content. This markup improves the search engines’ understanding of that content, which can help with relevancy signals and also enables a site to benefit from enhanced results in SERPs (rich snippets, rich cards, carousels, knowledge boxes, etc). Because this type of markup needs to be parsed and understood consistently by search engines as well as by people, there are standardized implementations (known as formats and/or syntaxes) and classifications of concepts, relationships, and terms (known as vocabularies) which should be used.

Tuesday, November 13, 2018

PHP programs to CRUD in php

<?php
include("./connect.php");
if(isset($_POST['btnReg'])){
$name=$_POST['txtnm'];
$gen=$_POST['rdbgen'];
$cno=$_POST['txtcno'];
$addr=$_POST['txtaddr'];
$h=$_POST['chk'];
$desg=$_POST['selDesg'];
$hobby=implode(",",$h);
$sql="insert into tblPerson(pname,gender,contactNo,hobbies,address,designation) values('".$name."','".$gen."','".$cno."','".$hobby."','".$addr."','".$desg."')";
$res=mysqli_query($con,$sql);
}
if(isset($_POST['btnDisp'])){
header("Location:./disp.php");
}
if(isset($_GET['act'])){

$sql="select * from tblPerson where pid =".$_GET['id'];
$res=mysqli_query($con,$sql);
$row=mysqli_fetch_array($res);
$hobby=explode(",",$row['hobbies']);
$desg=$row['designation'];
}
if(isset($_POST['btnUpd'])){
echo 'upd';
$name=$_POST['txtnm'];
$gen=$_POST['rdbgen'];
$cno=$_POST['txtcno'];
$addr=$_POST['txtaddr'];
$h=$_POST['chk'];
$desg=$_POST['selDesg'];
$hobby=implode(",",$h);
$sql="update tblPerson set pname='".$name."',gender='".$gen."',contactNo='".$cno."',hobbies='".$hobby."',address='".$addr."',designation='".$desg."' where pid=".$_GET['id'];
$res=mysqli_query($con,$sql);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form method="post">
<table width="779" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="row">Name :</th>
    <td><input type="text" name="txtnm" id="txtnm" value="<?php (isset($row))? print($row[1]):print("") ?>" /></td>
  </tr>
  <tr>
    <th scope="row">Gender :</th>
    <td>
    <?php
if(isset($row)){
if(strcmp($row['gender'],"Male")==0){
    ?>
            <input type="radio" name="rdbgen"  value="Male" checked="checked" />
    Male
           <input type="radio" name="rdbgen"  value="Female" />
                Female
    <?php
}
else{
    ?>
<input type="radio" name="rdbgen"  value="Male" />
      Male
    <input type="radio" name="rdbgen"  value="Female" checked="checked"/>
    Female
<?php
}
}
else{
?>
    <input type="radio" name="rdbgen"  value="Male" />
      Male
    <input type="radio" name="rdbgen"  value="Female"/>
    Female
    <?php
}
    ?>
 
    </td>
  </tr>
  <tr>
    <th scope="row">Contact No. :</th>
    <td><input type="text" name="txtcno" id="txtcno" value="<?php (isset($row))? print($row['contactNo']):print("") ?>" /></td>
  </tr>
  <tr>
    <th scope="row">Address :</th>
    <td><textarea name="txtaddr" id="txtaddr" cols="45" rows="5"><?php (isset($row))? print($row['address']):print("") ?></textarea></td>
  </tr>
  <tr>
    <th scope="row">Hobbies :</th>
    <td>
    <?php
$hb=array("Dancing","Sports","Singing");
if(isset($row)){
$j=0;
foreach($hb as $val){
if(strcmp($hobby[$j],$val)==0){
echo "<input type='checkbox' name='chk[]' value='".$val."' checked='checked' />".$val."<br/>";
$j++;
}
else{
echo "<input type='checkbox' name='chk[]' value='".$val."' />".$val."<br/>";
}
}
}
else{
foreach($hb as $val){
echo "<input type='checkbox' name='chk[]' value='".$val."' />".$val."<br/>";
}
}
?>
      </td>
  </tr>
  <tr>
    <th scope="row">Designation :</th>
    <td><select name="selDesg">
    <?php
$ch=array('Programmer','Project Manager','Analyst','Clerk');
foreach($ch as $c){
if(isset($row) && strcmp($c,$desg)==0){
?>
    <option value="<?php echo $c; ?>" selected="selected"><?php echo $c; ?></option>
   <?php
}
else{
?>
<option value="<?php echo $c; ?>"><?php echo $c; ?></option>
<?php
}
}
?>
    </select></td>
  </tr>
  <tr>
    <th colspan="2" scope="row"><input type="submit" name="<?php (isset($row))? print("btnUpd"):print("btnReg")?>" value="<?php (isset($row))? print("Update"):print("Register Me") ?>" />
    <input type="submit" name="btnDisp" value="Display" />
    </th>
  </tr>
</table>
</form>
</body>
</html> 

Monday, November 12, 2018

Function to validate email in PHP

<?php
function validate($mail){
if(strpos($mail,"@")>0 && strpos($mail,".")>0)
{
$atPos= strrpos($mail,"@");
$dotPos=strrpos($mail,".");
$len=strlen($mail);
if($dotPos>$atPos && strrpos($mail,".")<= $len-2){
return true;
}
else
return false;
}
else
return false;
}
?>

Sunday, November 11, 2018

Multiple delete using checkbox PHP MySql

<?php
include("./connect.php");
$sql="select * from tblPerson where 1";
$res=mysqli_query($con,$sql);
if(isset($_POST['btnDel'])){
echo "delete";
$id=$_POST['chk'];
$idList=implode(",",$id);
echo $idList;
$sql="delete from tblPerson where pid in(".$idList.")";
$res=mysqli_query($con,$sql);
header("Location:./disp.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form method="post">
<table border="1" width="779" cellpadding="10" cellspacing="0">
<tr>
<th colspan="9" align="right"><a href="ins_reg.php">Add New</a></th>
</tr>
<tr>
<th>Name</th>
    <th>Gender</th>
    <th>Contact No.</th>
    <th>Hobbies</th>
    <th>Address</th>
    <th>Designation</th>
    <th>Edit</th>
    <th>Delete</th>
    <th>Multiple Delete</th>
</tr>
<?php
while($row=mysqli_fetch_array($res)){
?>
<tr align="center">
    <td><?php echo $row['pname']; ?></td>
        <td><?php echo $row['gender']; ?></td>
        <td><?php echo $row['contactNo']; ?></td>
        <td><?php echo $row['hobbies']; ?></td>
        <td><?php echo $row['address']; ?></td>
        <td><?php echo $row['designation']; ?></td>
        <td><a href="ins_reg.php?id=<?php echo $row[0]; ?>&act=edit">Edit</a></td>
        <td><a href="disp.php?id=<?php echo $row[0]; ?>&act=del">Delete</a></td>
        <td><input type="checkbox" name="chk[]" value="<?php echo $row[0]; ?>"/></td>
    </tr>
<?php
}
?>
<tr>
<td colspan="9" align="right"><input type="submit" name="btnDel" value="Delete Marked"/></td>
</tr>
</table>
</form>
<?php
if(isset($_GET['act'])){

if(strcmp($_GET['act'],"del")==0){

$sql="delete from tblPerson where pid=".$_GET['id'];
$res=mysqli_query($con,$sql);
header("Location:./disp.php");
}
}
?>
</body>
</html>

Saturday, November 10, 2018

Program to count number of emails in a string in php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form method="post">
<table width="779" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="row">Enter String :</th>
    <td><textarea name="txtstr" id="txtstr"></textarea></td>
  </tr>
  <tr>
    <th colspan="2" scope="row"><input type="submit" name="btnsubmit" id="btnsubmit" value="Submit" /></th>
  </tr>
</table>
</form>
</body>
</html>
<?php
include("email.php");
$email=array();
if(isset($_POST['btnsubmit'])){
$mail=$_POST['txtstr'];
$a=explode("\n",$mail);
foreach($a as $val){
$arr=explode(" ",$val);
foreach($arr as $m){
$f=validate($m);
if($f)
$email[]=$m;
}
}
echo '<br/>There are '.count($email).' emails in this string.';
}
?>

Friday, November 9, 2018

Create a custom Style and Theme and apply it to your Android Project.

AndroidManifest.xml
-------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.test.stylentheme">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/Customchid">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
------------------------------------------------------------------------
style.xml
---------
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>
    <style name="t">
        <item name="android:textColor">#ff0000</item>

    </style>
    <style name="ts" parent="@style/Theme.AppCompat.NoActionBar">
        <item name="android:textSize">25dp</item>
    </style>
    <style name="t.tc">
        <item name="android:textStyle">bold</item>
    </style>
    <style name="th" parent="@style/Theme.AppCompat.NoActionBar">
        <item name="android:textSize">25dp</item>
        <item name="android:textStyle">italic</item>
    </style>
    <style name="Custom" parent="Theme.AppCompat.DayNight.NoActionBar">
        <item name="android:textColor">#ff0000</item>
        <item name="android:textSize">20sp</item>

    </style>
    <style name="Customchid" parent="Custom">
        <item name="android:textColor">#00ff0d</item>
        <item name="android:textSize">50sp</item>

    </style>
</resources>
------------------------------------------------------------------------
activity_main.xml
-----------------
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.test.stylentheme.MainActivity">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        style="@style/ts"
        android:id="@+id/textView1" />

    <TextView
        android:text="hello"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/textView1"
        android:layout_alignRight="@+id/textView1"
        android:layout_alignEnd="@+id/textView1"
        android:layout_marginRight="22dp"
        android:layout_marginEnd="22dp"
        android:layout_marginTop="55dp"
        android:id="@+id/textView4"
        style="@style/t"
        />

    <TextView
        android:text="world"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/textView4"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_marginTop="27dp"
        android:id="@+id/textView5"
        style="@style/t.tc"
        />

</RelativeLayout>
------------------------------------------------------------------------
MainActivity.java
-----------------
package com.example.test.stylentheme;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTheme(R.style.th);
        setContentView(R.layout.activity_main);
    }
}
------------------------------------------------------------------------

Bad words Detection in Input PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form method="post">
<table width="779" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="row">Enter String :</th>
    <td><textarea name="txtstr" id="txtstr"></textarea></td>
  </tr>
  <tr>
    <th colspan="2" scope="row"><input type="submit" name="btnsubmit" id="btnsubmit" value="Submit" /></th>
  </tr>
</table>
</form>
</body>
</html>
<?php
$wrds=array('oh','allas','wah','omg');
if(isset($_POST['btnsubmit'])){
$str=$_POST['txtstr'];
$a=explode("\n",$str);
foreach($a as $val){
$arr=explode(" ",$val);
foreach($arr as $m){
foreach($wrds as $w){
if(strcmp($w,$m)==0){ echo 'contains bad words.'; exit;
}
}
}
}
}
?>