Skip to main content

Posts

Showing posts from July, 2018

Simple Search Bar With Php & Mysql

<html> <title></title> <head> </head> <body> <fieldset> <form action="" method="POST"> <center><h3> Check Result</h3></center> <center> Search<br> <input type="text" name="rolld" > <br><br> <input type="text" name="dob"> <br><br> <input type="submit" name="submit"> </center> </form> </fieldset> </body> </html> <center> <?php error_reporting(0); $conn = mysqli_connect("localhost", "root", "","schoolreult"); //search code //error_reporting(0); if($_REQUEST['submit']){ $name = $_POST['name']; $result=$_POST['result']; $rolld=$_POST['rolld']; $fathername=$_POST['fathername']; $dob=$_POST['d...

How To Get Factorial Of Any Number In Php

Simple Factorial Program In Php <?php   if(isset($_POST['submit'])){ $num = $_POST['num']; $factorial = 1; for ($x=$num; $x>=1; $x--)   {     $factorial = $factorial * $x;   }   echo "Factorial of $num is $factorial";   } ?>   <form action="" method="POST"> <input type="text" name="num"> <input type="submit"  value="submit" name="submit"> </form> Thank You Team Gajabwap Web In Hindi

How To Create Live Word Counter With Javascript

Live Word counter Kaise Bnaye-ajj me apko btaunga ki kis trah aap sirf 2 minutes me javascript live word counter bana sakte ho. demo- <head> <script> function countcharacter(count){     document.getElementById("word").innerHTML = count.value.length; } </script> </head> <body> <textarea name="message" onkeydown="countcharacter(this);"></textarea> <font color="red"><p id="word"> </p></font> </body> </html> javascript word count word count code in javascript javascript character count word count validation in jquery input word count javascript write a javascript program to count number of words in string jquery count words in div textarea character count javascript Thank You Team Gajabwap Web In Hindi

How To Send Email In Codeigniter

Hello friends ajj me apko btaunga ki ham codeigniter framework me kis trah se email send kar sakte hai easily. Yanha sabse pehle ham email library ko load karwayege jiski madad se ham codeigniter me email send kar payege Send text mail- $this -> load -> library ( 'email' ); $this -> email -> to ( 'recipient@example.com' ); $this -> email -> from ( 'yourmail@gmail.com' , 'formname' ); $this -> email -> subject ( 'Test Email (TEXT)' ); $this -> email -> message ( 'Text email testing .' ); $this -> email -> send (); Send   mail to multiple recipient- $this -> email -> to ( 'first@example.com, second@example.com, three@example.com' ); Send html mail- $htmlContent  =  'HTML email testing' ; $htmlContent  .=  'enter content in this email' ;      $config [ 'mailtype' ] =  'html' ; $this -> email ->...

How To Create Meta Tag Generator Tool using Javascripts

Hello friends ajj me apko btaunga ki kis parakar ham html and javascript ka use karke meta tag generator tool bana sakte hai. 1-sabse pehle aap ek index.html file create kar lijiye or wanha niche diya gya code paste kar dijiye. Index.html- <html> <head> <script language="JavaScript"> <!-- Begin function create(form) {   if (confirm("Are you sure?")) {     form.story.value = " <!-- Copy all code --> \n" +    " \n" +          " \n\n";     if (form.input2.value != "") {       form.story.value +=" <b:if cond='data:blog.url == data:blog.homepageUrl'>      <meta NAME=\"Description\" CONTENT=\"" +       form.input2.value + "\"/></b:if>\n";     }     if (...

How to Import a image from URL and Store In Database

Hello friends ajj me apko btaunga ki kis parkar ham url se image import kar sakte hai or us image ko database me store karwa sakte hai.. Yanha ham sabse pehle image ko image url address ke jriye import karege or uske bad import hue image ko mysql database me store karege. Steps- 1-sabse pehle aap mysql databse me imagescrap name ka ek database bana lijiye 2-ab us database me  users name ka ek table bana lijiye jisme 2 field bana lijiye id and new Ab aap niche diye gye code ko copy karke apne system me index.php name ki file bana lijiye or wanha niche diya gya code paste kar dijiye.or save kar lijiye <html>     <body><fieldset><center>      <h1> scrap Image from url</h1>         <form method="post" action="">             <input type="text" name="img_url" placeholder="En...

How to Send SMS WITH Mvaayoo API in PHP

Hello friends ajj me apko btaunga ki kis parkar aap mvaayoo api ka use karke php website me sms send kar sakte ho localhost ya webshosting se. Steps- 1- https://www.mvaayoo.com 2-ab aap is website par account bana lijiye Apka account create hone ke bad mvaayoo ki traf se apki email id par apki login detail email id and password a jayegi . 3-apko sirf wanha se apni email id and password ko niche diye gye code me paste karna hai. Itna karte he ap mvaayo api ka use karke sms send kar sakte ho. Mvayoo company ki traf se apko 20 msg free of  cost provide kiye jate hai jinka use aap testing ke liye kar sakte ho. Index.php <?php $ch = curl_init(); $user=" enter your account email id here : enter your password here "; $receipientno=" enter reciver mobile number here "; $senderID="TEST SMS"; $msgtxt="this is test message , test"; curl_setopt($ch,CURLOPT_URL,  "http://api.mVaayoo.com/mvaayooapi/MessageCompose");...

How To Login With linkedin Using Javascript

Hello friends ajj me apko btaunga ki kis parkar ham javascript ka use karke login kar sakte hai. Step 1- https://www.linkedin.com/developer/apps Sabse pehle aap  upper diye gye link se linkdin app create kar lijiye yanha apko kuch detail company name,app name etc fill karne hai Step2-yanha website url me aap apne file ke path dale jese me is program ko localhost par run karwa raha hu uska website url is parkar hai Example- http://localhost/linkdin/index.php/ or http://localhost/linkdin/ Aap in dono me se kisi be trah se apna website address enter karke apna linkdin app create kar sakte ho Step3- app create hone ke bad apko yanha se ek api key milege jise hme niche diye gye code me sirf paste karke code ko save kar dena hai Steps4- create a file index.html Index.html <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript" src=...

How To Trace IP address With Php

Hello friends  is post me apko btaya jayega ki kis parkar ham kisi be ip address ko trace kar sakte hai.or aap apni website me ip address tracker tool integrate kar sakte ho Step1-create a index.php file Is parkar aap easily kisi be user ka ip address track kar sakte ho <fieldset> <form action="" method="POST"> <input type="text" name="ip"/> <br> <input type="submit" name="submit"> </form></fieldset> <?php if(isset($_POST['submit'])){ $ip = $_POST['ip']; // the IP address to query $query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip)); if($query && $query['status'] == 'success') {   echo 'Hello visitor from '.$query['country'].', '.$query['region'].'!'; echo "...