hello,
<?php
$q=$_GET['q'];
//echo $q;
$con=mysqli_connect("localhost","root","",$q);
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$abc=mysqli_query($con,"use $q") or die('cannot show tables');
$result=mysqli_query($con,"show tables");
echo "<select id='abc'>";
while($row= mysqli_fetch_array($result))
{
echo "<option value='". $row[0]. "'/>" . $row[0] . "</option>";
}
echo "</select>";
?>
i want to response out only option values from this php file which is called upon by ajax.how can i do this....
??