Ver originalfunction nombreDeLaFuncion(){ return mysql_query("aquí va tu consulta") or die(mysql_error);}