Statistics: Posted by Jason Caldwell — June 23rd, 2010, 5:25 pm
<?php
add_action("init", "my_function");
function my_function(){
$user = wp_get_current_user();
print_r($user);
}
?>
Statistics: Posted by Jason Caldwell — June 23rd, 2010, 3:44 pm
$oto_name= $_POST['oto_name'];
$oto_html = AddSlashes($_POST['oto_html']);
$member_id = [color=#FF0000]wp_get_current_user();
[/color]
mysql_connect("localhost", "user", "password") or die(mysql_error());
mysql_select_db("db name here") or die(mysql_error());
mysql_query("INSERT INTO new_oto (oto_name, oto_html) VALUES ('$oto_name', '$oto_html') ")
or die(mysql_error());
Statistics: Posted by azulvato — June 23rd, 2010, 3:34 pm
add_action("init", "my_function");
function my_function(){
$user = wp_get_current_user();
print_r($user);
}
Statistics: Posted by Jason Caldwell — June 23rd, 2010, 2:08 pm
Statistics: Posted by azulvato — June 22nd, 2010, 7:21 pm
Statistics: Posted by Jason Caldwell — June 22nd, 2010, 12:30 am
echo get_user_option("s2member_subscr_id");
$user = new WP_User(123);
echo get_user_option("s2member_subscr_id", $user->ID);
$user = new WP_User("johndoe22");
echo get_user_option("s2member_subscr_id", $user->ID);
Statistics: Posted by Jason Caldwell — June 22nd, 2010, 12:25 am
Statistics: Posted by azulvato — June 21st, 2010, 10:43 pm