My code
Search_restl.php
<html>
<body>
<head>
<font size="3"><strong>
<?php // Connects to your Database
mysql_connect("mysq.com", "bd", "pass") or die(mysql_error());
mysql_select_db("products") or die(mysql_error());
$q = mysql_real_escape_string($_GET['query']);
$data = mysql_query("SELECT * FROM Products where name LIKE '%$q%'")
or die(mysql_error());
while($info = mysql_fetch_array( $data ))
{
echo "Product Name: $info[name]<br>";
echo "Grade A: $info[good]<br>";
echo "Grade B: $info[poor]<br>";
echo "Grade C: $info[faulty]<br><br>";
}
?>
Prob:
i want that the stored values or price of (Grade A ,Grade B, Grade C) is retrived by RadioButton.
Eg: if i select select Grade A then i get value of Grade A etc