When I do an "UPDATE" it seems to be cached or suffering a short of latency, because php code continues executing and database is not updated. When code is executed again, it's updated.
----------------------------------------------------------------------------------
$search="update table set margen_sup=$altura where id=12";
$result=mysql_unbuffered_query($search);
(Code to access table and view updated register. It's not updated...)
----------------------------------------------------------------------------------
(Second time code is executed: table is updated).
----------------------------------------------------------------------------------
Which problem is it?. Why code is not waiting until update is finished?...
Thanks in advance.

