Hi,
From a button_onclick, can I call a php script, if so please advise me, how I can do this.
<input type=button value="Search" onclick=SearchClick()>
function SearchClick()
{
$sql = "select * from table where Name like '%hello%'";
$result = mysql_query($sql);
if($row = mysql_num_rows($result)){
echo 'Number of results found '.$row.'.';
}else{
echo 'No results';
}
}
From a button_onclick, can I call a php script, if so please advise me, how I can do this.
<input type=button value="Search" onclick=SearchClick()>
function SearchClick()
{
$sql = "select * from table where Name like '%hello%'";
$result = mysql_query($sql);
if($row = mysql_num_rows($result)){
echo 'Number of results found '.$row.'.';
}else{
echo 'No results';
}
}
Comment