How to execute button by clicking on another button java?
By : truls
Date : March 29 2020, 07:55 AM
|
perform multiple sql queries when clicking a submit button on PHP Page
By : MyFirstLog
Date : March 29 2020, 07:55 AM
may help you . I have a PHP page, that on clicking the submit button process a few MySQL queries. , I think that this is likely to be your problem code :
while($rows=mysql_fetch_array($result)){
while($rows=mysql_fetch_assoc($result)){
echo $rows['dispatcharea'];
// First update query
$sql1="update loaddetails set loadid= (select max(loadid)+1 from loadcounterid) where loadid=0";
// Second update query
$sql2="update loadcounterid set loadid= (select max(loadid) from loaddetails) where loadid>0";
// Run both queries independently
$final_query1 = mysql_query($sql1);
$final_query2 = mysql_query($sql2);
// Check for query success
if ($final_query1 && $final_query2)
{
// Success running the queries
}
else
{
// Unsuccessful running the queries
}
|
How to execute this function without clicking on a button
By : Madhup Ranjan
Date : March 29 2020, 07:55 AM
|
PHP: execute function upon clicking a button
By : Jamal Smith
Date : March 29 2020, 07:55 AM
|
Execute different function when clicking on button
By : John Brogan
Date : March 29 2020, 07:55 AM
|