[wp-hackers] mysql insert and then a page redirect
fidler.brian at gmail.com
Sun May 30 06:04:02 UTC 2010
Thanks John. That's perfect, I wasn't certain if WP's methods would check
the db insertion.
On Sat, May 29, 2010 at 4:20 AM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> You can use either the $wpdb->update or $wpdb->query methods to update
> the database. These will return true or false depending of the query
> is successful.
> To redirect afterwards you should use wp_redirect( your_url ) followed by
> On Fri, May 28, 2010 at 10:29 PM, Brian Fidler <fidler.brian at gmail.com>
> > I'm setting up some PayPal integration where I set the PayPal return URL
> > a url with a specific transaction number as a URL variable. I'd like to
> > return to a script that updates the database and then redirects to a
> > different page once the db has been updated.
> > What's the best way (or is it even necessary) to verify that the db has
> > updated and upon verification load a different page?
> > thanks,
> > brian
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers