PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_query(" UPDATE datos
SET origenpais='$ud_origenpais', origenestado='$ud_origenestado',
origenciudad='$ud_origenciudad', WHERE numguia='$ud_id'");
With unexpected additional comma before 'where' condition in your query, it is always better to use proper quotes while using php variables for mysql query. Even if the above modifications does not solve your problem then use the mysql_error() function to display the proper error for your query. So modified the code from ..
mysql_query(" UPDATE datos
SET origenpais='$ud_origenpais', origenestado='$ud_origenestado',
origenciudad='$ud_origenciudad', WHERE numguia='$ud_id'");