Conount-blogger tips,Marketing, Web Design, Computer Hardware and Network, Business and Finance.: programming languages
Showing posts with label programming languages. Show all posts
Showing posts with label programming languages. Show all posts

what is the simplest way of embedding another web page in php

what is the simplest way of embedding another web page in php

Today  we are going to talk about what is the simplest way of embedding another web page in php  basically  we use "div  " tag to embedding however in this methods you can fully customize  your Embed part which mean you can embed select Ares of another web page . Let's See How to do that ...


First  copy below code into your page.  


<div style="margin-left: -250px; margin-top: 50px; overflow: hidden;">
<iframe scrolling="no" src="url" style="border: 0px none; height: 900px; margin-bottom: -50px; margin-left: -240px; margin-top: -100px; width: 2000px;">
</iframe>
</div>

Then replace the "url"  to embed web page link .

<div style="margin-left: -250px; margin-top: 50px; overflow: hidden;">
<iframe scrolling="no" src="url" style="border: 0px none; height: 900px; margin-bottom: -50px; margin-left: -240px; margin-top: -100px; width: 2000px;">
</iframe>
</div>

 

Now you can adjust margins with your creation



Best code editor for PHP - Code Lite





a few days back I started a new PHP Project call "order now " so before starting my project I did a reached about what is the best code editor for my project. it takes a few days .i like to share my experience with you. ok, let's dig in.!!!!!!! 


Code lite is the best solution for my project .it has very charming features. withing these features I can recommend to everyone use this .let's see what are the feature that code lite has?


1) it's free 




You can download it without pay any single dollar with so many features. (to download Code lite Click the Download Button).

2) no need  Supper Computer


most code editors need high hardware spec to work. but code lite need minimum hardware spec.

3) A good teacher


code lite has a good feature. it shows full details and errors about the PHP code. I think it's a big opportunity for beginners.

4) Simple Interface with simple installation


code lite has a very simple interface so no need rocket science knowledge to manage and installed code lite. 


                                                  Download Buttons transparent PNG images - StickPNG

INSERT, DELETE, UPDATE SEARCH Function in PHP




Today We are going to teach  how to use INSERT, DELETE, UPDATE SEARCH Function in PHP
you can Use This Code to Your Day today Projects



 PHP Code

 

0)
{

echo'data add';

} else{

    echo 'adding data failed';

}

}

}catch (Exception $ex){

echo 'Error Insert' .$ex->getmessage();

}


}


//delete button


if(isset($_POST['Delete']))

{

$data = getData();
$Delete ="DELETE FROM `details` WHERE `uid`= $data[0]";

try{
$Delete_result=mysqli_query($conn,$Delete);

if($Delete_result)

{

if (mysqli_affected_rows($conn)>0)
{

echo'data delete';

} else{

    echo 'deleting  data failed';

}

}

}catch (Exception $ex){

echo 'Error Delete' .$ex->getmessage();

}


}

//update button


if(isset($_POST['Update']))

{

$data = getData();
$Update ="UPDATE `details` SET `user`='$data[1]',`department`='$data[2]',`serialkey`='$data[3]',`type`='$data[4]',`comments`='$data[5]' WHERE `uid` =$data[0]";

try{
$Update_result=mysqli_query($conn,$Update);

if($Update_result)

{

if (mysqli_affected_rows($conn)>0)
{

echo'data Update';

} else{

    echo 'Updating  data failed';

}

}

}catch (Exception $ex){

echo 'Error Delete' .$ex->getmessage();

}


}

?>


Html Code

 



<html>



<meta name="viewport" content="width=device-width, initial-scale=1.0">



<head>



      <!--- css code start  -->



<link href="gui.css" rel="stylesheet" type="text/css">



<!--- css code end  -->



    <title> itasset</title>

</head>

<body>





<div class="container">



<form  action="datasave.php"   method="post">

<br></br>



<input type="text" name="uid"  placeholder="ID" value="<?php echo $uid;?>"> <br></br>

<input type="text" name="user"  placeholder="user" value="<?php echo $user;?>"  > <br></br>

<input type="text" name="department"  placeholder="department"  value="<?php echo $department;?>"> <br></br>

<input type="text" name="serialkey"  placeholder="serialkey"  value="<?php echo $serialkey;?>"> <br></br>

<input type="text" name="type"  placeholder="type"  value="<?php echo $type;?>"> <br></br>

<input type="text" name="comments"  placeholder="comments"  value="<?php echo $comments;?>"> <br></br>



<input type="submit" name="search" value="search">

<input type="submit" name="insert" value="insert">

<input type="submit" name="Update" value="Update">

<input type="submit" name="Delete" value="Delete">



</div>



</form>

  <a href="showtable.php"   class="button">show  all deta </a>



</body>

</html>











HTML5




Just question yourself  If you want to build a new web site from scratch than which doctype would you use. HTML5 Programming is an excellent tool for new websites and apps.

HTML5 Specifications:-

Interactivity and Native support:-From past many years the web developers were trying to invent a tool which has the capacity to display fluid animations, stream video, play music and integrate with Social networking sites. So, HTML5 is only a candidate who stands in this row. Native video can be built on HTML5 which enables the publishers to deliver full-motion, high-quality video with greater speed. This tool will provide web developers to immediately grasp the full knowledge of the web pages and even if they are brand new to it.

It improves SEO:- HTML5 Programmer understand the search engine optimization in a better way. It provides greater accessibility. Tags like the “section” tag, which enables marketers to explain the topic of page sections, and the “nav” tag, by which a mobile device browser can make a link and helps the search engines more accurately in categorizing content and links.

Smarter Forms:- It provides better control for validating data, focusing, interaction with other pages elements on the page and various other improvements like you can get fully defined and structured database storage. This allows a developer to save structured data client-side using a real SQL database

Why should marketers embrace HTML5?

It is a nice question but a better question might be “why shouldn’t they?” the reason is that  Google has announced in one of his posts that it is bringing support for the HTML5 speech input API to the company’s Chrome browser. This will help the developers to introduce amazing new features in a variety of web apps by using certain tools. Now the users with a microphone will be able to record their speech, with API and can send it to a transcription server, and show up as text within the web app. It is already available in the Chrome beta from today.

C# Text Box Validation




Today we will see how to make a textbox that only accepts numbers or only characters in C#.Use this Validation in TextBox KeyPress Event.




After applying this below code .you can type only words in the Text box. you can't type Numbers and Other symbols in that Text box

            if(!char.IsControl(e.KeyChar) && !char.IsLetter(e.KeyChar))

            {

                e.Handled = true;

            }

           
After applying this below code .you can type only Numbers in the Textbox. you can't type Words and Other symbols in that textbox

            if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))

            {

                e.Handled = true;

            }
       

After applying this below code .you can type  Numbers and Words in the Textbox. you can't type Other symbols in that textbox.
 
            // allow digit + char + white space

            if (!char.IsControl(e.KeyChar) && !char.IsLetterOrDigit(e.KeyChar) && !char.IsWhiteSpace(e.KeyChar))

            {

                e.Handled = true;

            }

        

how to search data from datatable using a textbox a in C#?





This is our Very first  C# Lesson. In this lesson, Today We going to discuss how to search  data from datatable using a textbox and display it into datagridview in C#?. before doing this you need setup all thing ! Like adding data and deleting data, updating data Etc. this is a common Methord !!


1) Select Your TextBox And  goto the Event Section in the Property Window


2) Dubble Click the TextChanged Row



3 )  Copy the Below Code to your  Project

 

private void textBox11_TextChanged_1(object sender, EventArgs e)
        {

            (dataGridView1.DataSource as DataTable).DefaultView.RowFilter = string.Format("PurchaseID LIKE '%{0}%'", textBox11.Text); 
        }


4)  Then  Change  Clour Ares
  •    Your datagridview  Name dataGridView1
  •    Your Database Column Name   PurchaseID
  •     Your Textbox Name   Textbox11

5)  Now Click Save Button

Find Us on Instagram

Featured

[Featured][recentbylabel2]

Featured

[Featured][recentbylabel2]
Message From Conount
If you fell down yesterday, stand up today.
Ok