Hi
How can I send this few information below from the "MY ORDER" to the user that is logged in. I get all the right information below from the database on the USER PROFILE page, but I also want that the user can send these information to his email adress ($un) by one click.
Thanks
////USER PROFILE
db_connect ($cfg["db_server"], $cfg["db_user"], $cfg["db_pass"], $cfg["db_database"]);
$sql = "select * from users where user='$cur_user'";
$result = db_query ($sql);
echo "<table width=100% border=1 bordercolor=cdcdcd cellpadding=4>
<tr><Td bgcolor=cdcdcd><b>My Order</b>";
while ($row=mysql_fetch_object($result)) {
$un = $row->username;$first=$row->first;$last=$row->last;$created=$row->created;$exp=date("m/d/Y h:i:sa",$row->expire);
echo "<tr><td><b>Order no.: </b> $created";
echo "<tr><td><b>Order date: </b>";
echo strftime('%e',$created);
echo ".";
echo strftime('%m',$created);
echo ".";
echo strftime('%G',$created);
echo "<tr><td><b>Deliver date: </b>";
echo strftime('%e',$created);
echo ".";
echo strftime('%m',$created);
echo ".";
echo strftime('%G',$created);
echo "<tr><td><b>Payment status:</b> Paid with creditcard";
echo "<tr><td><b>Item:</b> 1 superbox";
echo "<tr><td><b>Total:</b> $ 19.00 "; echo "<tr><td><b><p>CLICK HERE to send Order details to my e-mail";
}
mysql_close();
echo "</table>";
echo "<br />";