Monday, 18 December 2017

PHP in Research - Bioinformatics

Hi All,

PHP can be easily used for similarity checking for sequences using

i)  Jaccard
ii) Cosine
iii) Overlap and
iv) Dice

The program will be published soon

Saturday, 16 December 2017

New Advanced Computer Science Projects supported by my Research Centre- 2017-18

Hi All,
My Company has added few more project titles for 2017-18 Batch . Contact me for Project Support.

Doing an innovative project using advance technology is no big deal.
You need passion...that's the only requirement.
Anyone can be taught any technology if interested.


1. Windspeed prediction using Artificial Neural Networks (ANN)

2. Weather Reporting using R-Pi, Python and Twitter Interface

3. Student performance Prediction using Artificial Neural Networks (ANN)

4. Weather Forecasting using Artificial Neural Networks (ANN)

5. Twitter Sentiment Analysis using Python

6. Cancer prediction using Artificial Neural Networks (ANN)

7. Protein Interaction Prediction using Support Vector machine(SVM)

8. Car Number Plate detection and recognition using Matlab Image Processing Toolkit.

9. DNA cryptography for Text and Image Encryption using Matlab

Wednesday, 13 December 2017

Ajax

HI All,

Program 1 - ajaxmain.php
----------------------
<html>
<head>
<script>
function loadDoc() {
//alert('HUP');
     var

key=document.frmsearch.sname.value;
      var xhttp = new XMLHttpRequest();
      xhttp.onreadystatechange =

function() {
        if (xhttp.readyState == 4 &&

xhttp.status == 200) {
             document.getElementById

("demo").innerHTML = xhttp.responseText;
        }
  };
  xhttp.open("GET", "searchstud.php?

key="+key, true);
  xhttp.send();
}
</script>


</head>
<body >
<form name=frmsearch  method=post>
<center>Name <input type=text name=sname

onkeyup="loadDoc()"><input type=button

value='Search Student'onclick="loadDoc

()">
</center>
</form>
<div id="demo" align=center><h2>Search

Result</h2></div>
</body>
</html>


-----------------------
Program 2 - searchstud.php

<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("m301db",$con);
$sname=$_GET['key'];

$sql="Select * from tbl_student where st_name like '%$sname%'";



$data=mysql_query($sql,$con);
echo "<table border=1 align=center width=50%>";
echo "<tr><th>Name</th><th>Roll No</th><th>Marks</th></tr>";
while($row=mysql_fetch_array($data))
{
$name=$row[0];
$rollno=$row[1];
$marks=$row[2];

echo "<tr><td>$name</td><td>$rollno</td><td>$marks</td></tr>";

}

mysql_close($con);

?>

Search Without Ajax

Hi All,
Find the code below.

<html>
<body>
<?php
include('connect.php');
?>
<form method=post>
<pre>

Name    <input type=text name=name>

<input type=submit value='Search' >
</form>
</pre>
<table border=1 align=center>
<tr><th>Id</th><th>Name</th><th>Marks</th><th>Rank</th></tr>"
<?php
if(isset($_POST['name']))
{

$name=$_POST['name'];
$sql="select * from tbl_student where st_name like '%$name%'";

$data=mysql_query($sql,$con) ;
while($row=mysql_fetch_row($data))
{
echo "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]

</td><td><a href=delstudent.php?id=$row[0]&name=$row[1]&marks=$row[2]

>Delete<a></td></tr>";

}

}

?>
</table>   
</body>
</html>

Tuesday, 12 December 2017

Multiple Submit Buttons

Hi All,
Please see the code.

<html>
<body>
<form method=post>
Number1 <input type=text name=num1>
Number2 <input type=text name=num2>
<input type=submit value='Add' name=btnadd>
<input type=submit value='Sub' name=btnsub>
</form>
<?php
if(isset($_POST['num1']))
{
$n1=$_POST['num1'];
$n2=$_POST['num2'];
if(isset($_POST['btnadd']))
{
$sum=$n1+$n2;
echo "Sum is ".$sum;
}
else if(isset($_POST['btnsub']))
{
$diff=$n1-$n2;
echo "Difference is ".$diff;
}

}//IF ends
?>
   
</body>
</html>