?
Path : /home/admin/domains/happytokorea.com/public_html/backend/modules/advertise/ |
Current File : /home/admin/domains/happytokorea.com/public_html/backend/modules/advertise/com_new_topic.php |
<?php header("Content-type: application/vnd.ms-word"); header("Content-Disposition: attachment; filename=export e-mail ".date("YmdHis").".doc"); ?> <html> <body> <?php $objConnect = @mysql_connect("localhost","admin_happyko","admin*tour2015") or die("Error Connect to Database"); $objDB = @mysql_select_db("admin_happyko"); $strSQL = "SELECT * FROM advertise"; $objQuery = mysql_query($strSQL)or die(mysql_error()); while($objResult=mysql_fetch_array($objQuery)){ echo $objResult["name_advertise"].", "; } mysql_close($objConnect); ?> </body> </html>