My Account

Login

Register

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.


user_firstname;
$email =$current_user->user_email;

$_SESSION[‘user’]=$user;
$uname=$_SESSION[‘user’];

include “wp-config.php”;

$mysqli = new mysqli(“$DB_HOST”, “$DB_USER”, “$DB_PASS”, “$DB_NAME”);
if ($mysqli->connect_errno) {
echo “Failed to connect to MySQL: (” . $mysqli->connect_errno . “) ” . $mysqli->connect_error;
}
$select1=mysqli_query($mysqli,”Select order_id from wp_woocommerce_order_items where order_item_name=’EBook'”);
while($arr1=mysqli_fetch_array($select1,MYSQLI_ASSOC))
{
$order_id=$arr1[‘order_id’];

$select2=mysqli_query($mysqli,”Select id,post_status from wp_posts where id=’$order_id’ and post_status=’wc-completed’ or post_status=’wc-processing'”);
$arr2=mysqli_fetch_array($select2,MYSQLI_ASSOC);
$order_id2=$arr2[‘id’];

$select3=mysqli_query($mysqli,”Select post_id,meta_key,meta_value from wp_postmeta where post_id=’$order_id2′ and meta_value=’$email'”);
$count=mysqli_num_rows($select3);
$arr3=mysqli_fetch_array($select3,MYSQLI_ASSOC);
//echo $arr3[‘meta_value’];

}

if($count!=”)
{
?>

EBook



Recent products

  • Twitter Updates

  • Testimonials

    Thank you so much for Purple Umpkin Book

    Thank you so much for Purple Umpkin Book. I don't have one like it and it is really fun Thanks...

    -- Bella

    5.0
    2015-04-06T01:36:04-05:00

    -- Bella

    Thank you so much for Purple Umpkin Book. I don't have one like it and it is really fun Thanks again

    Great to read, Kids Love it!

    Great to read book

    Shawn M. Canada

    5.0
    2015-01-17T22:34:17-05:00

    Shawn M. Canada

    Great to read book

    “PurpleUmpkin is perfect tale for young readers.”

    "Combining life-affirming themes and vivid, colorful illustrations, PurpleUmpkin is perfect tale for young readers."

    --- Apex Reviews

    5.0
    2015-02-02T01:45:11-05:00

    --- Apex Reviews

    "Combining life-affirming themes and vivid, colorful illustrations, PurpleUmpkin is perfect tale for young readers."

    Thank you for the wonderful Book

    [caption id="attachment_938" align="alignnone" width="300"] Hannah Thanks for Purple umpkin book[/caption]

    --- Hannah

    5.0
    2015-02-02T02:01:32-05:00

    --- Hannah

    [caption id="attachment_938" align="alignnone" width="300"] Hannah Thanks for Purple umpkin book[/caption]

    “Meet The “New Muppets” and Discover How They Are Changing The World”

    "Meet The “New Muppets” and Discover How They Are Changing The World"

    -- StarKids Blog

    5.0
    2015-03-16T22:11:15-05:00

    -- StarKids Blog

    "Meet The “New Muppets” and Discover How They Are Changing The World"
    5
    5
  • Flickr Feed