Code execution behind the custom button?

Dear Forum Members,

On a single record form I’ve added a custom button with the below code:

echo “<img src=’…/_lib/img/processing.gif’>”;
for($i=0;$i<2000;$i++)
{
sc_exec_sql("a insert statement ";
}

The processing image is showing if I remove the insert statement but not showing with statement. I need the processing info urgently if anyone can figureout the issue would b very helpful for me.

Thanks

Rajibul

sc_exec_sql("a insert statement "; a missing ) ???

Hello RR,

I just mean to say there is an insert statement which is working fine . echo also working but after executing the whole script.

Thanks
Rajibul

I would like to add a processing notification (as like as one showing on navigation) on custom php button for single record form. Its urgent.

Is there anyone to help?