Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Update query is lacy

Codes here !

Moderators: macek, egami, gesf

Update query is lacy

Postby Desarrollo » Wed Dec 11, 2002 9:10 am

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.
Desarrollo
New php-forum User
New php-forum User
 
Posts: 5
Joined: Mon Nov 11, 2002 8:48 am

Postby Desarrollo » Wed Dec 11, 2002 12:01 pm

Ok, don't worry.
Problem solved.
"Update" is not lacy... the problem was another piece of code... :D

Thanks.
Desarrollo
New php-forum User
New php-forum User
 
Posts: 5
Joined: Mon Nov 11, 2002 8:48 am


Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.