146 reputation
112
bio website richardsweeney.com
location
age
visits member for 3 years, 7 months
seen Jan 18 '12 at 12:52

Jul
2
awarded  Curious
Feb
19
awarded  Popular Question
Jun
14
awarded  Notable Question
Mar
25
awarded  Popular Question
Feb
12
awarded  Popular Question
Oct
19
awarded  Popular Question
Dec
1
comment Trying to set a cookie based on $_POST parameter
Hi @Otto - I tried this already (sorry, should've said that in my post). The 'wp' hook was a bit of a shot in the dark! Unfortunately it doesn't solve the issue for me, now I'm even less sure why..!
Nov
30
revised Trying to set a cookie based on $_POST parameter
Can't spell
Nov
30
asked Trying to set a cookie based on $_POST parameter
Oct
25
accepted Check to see if page exists problems
Oct
25
comment Check to see if page exists problems
Hi @Chip - thanks for this. Makes sense of course and happily solved my problem. Cheers
Oct
25
comment Check to see if page exists problems
@OneTrickPony - how else do I check if the page already exists other than by checking all existing pages?
Oct
25
asked Check to see if page exists problems
Aug
2
awarded  Tumbleweed
Jun
20
asked Using media-upload.php to upload mp3 via custom fields
May
11
comment Should I use wpdb prepare?
Odd. I've tried using the same code with another query: $tablename = $wpdb->prefix . "my_custom_table"; $concert_id = 1; $sql = "SELECT * FROM " . $tablename . " WHERE concert_id = %d LIMIT 1;"; $prep_sql = $wpdb->prepare( $sql, $concert_id ); $get_concerts = $wpdb->get_results( $prep_sql , ARRAY_A ); And it works great! Not sure why that would be. But I get it now in any case!
May
11
accepted Should I use wpdb prepare?
May
11
comment Should I use wpdb prepare?
Hi @Bainternet, thanks for such a clear explanation - for some reason when I try your code it returns an empty array. I've checked and doubled checked for typos. If I do the unprepared query I get the array. I don't understand why it's not working..!
May
11
asked Should I use wpdb prepare?
Apr
29
comment wp_enqueue_style for plugin options page
Hi Rarst, Thanks so much for this - this is my first attempt at writing a plugin so all advice is greatly appreciated! - R