Dear Sir,
I have following codes. These code wok fine. Is it possible to get table data with ajax. If yes then please help me to modify my code. Thanks
[PHP]<?php
require_once(“connect.php”);
$productCode = “”;
$productValue="";
if(isset($_POST[‘button1’]))
{
// Get values from form
$sno =$_POST[‘txtsno’];
$record_check ="SELECT * FROM test WHERE sno = '$sno' ";
$result=mysqli_query($con, $record_check);
$row = mysqli_fetch_array($result);
//conditional statement starts
if(!$row)
die ('No record Found');
else
{
$productValue = $row['packing'];
$productCode = $sno;
}
// Conditional statement ends
}
?>
Display data in textboxes html { overflow:auto; } body { background-color:#FFFFFF; margin:0 auto; } #mypopup { float: left; width: 250px; height: 350px; background-color:#d5eef4 ; border: 1px solid #069; text-align:center; padding:2px; margin-top:150px; margin-left:100px; overflow:auto; } #header { background-color:#3399FF; background-position:left center; line-height:25px; font-size:22px; color:#FFFF33; font-weight:600; border-bottom:1px solid #6699CC; padding:10px; }Search Data
Code | |
---|---|
Product |