?
Path : /home/admin/public_html/old/ |
Current File : /home/admin/public_html/old/ProductsSave.php |
<? @session_start(); ob_start(); require_once "include/tdate.php"; require_once "include/connect.php"; require_once "include/connectdb.php"; if($_FILES["productsphoto"]["name"] != "") { $name=$_FILES['productsphoto']['name']; $tmp=$_FILES['productsphoto']["tmp_name"]; $date_time=date("Y-m-d H:i:s"); $oldname=explode(".",$name); $ext = ""; $ext = ".".$oldname[count($oldname)-1]; $photo_1 =date('YmdHis').$ext; copy($tmp,"IMG/".$photo_1); }else{ $photo_1 = ""; } mysql_query("INSERT INTO registeam (id,noteam, teamname,cover_dance_list_name_1,cover_dance_list_age_1,cover_dance_list_name_2,cover_dance_list_age_2,cover_dance_list_name_3,cover_dance_list_age_3,cover_dance_list_name_4,cover_dance_list_age_4,cover_dance_list_name_5,cover_dance_list_age_5,cover_dance_list_name_6,cover_dance_list_age_6,cover_dance_list_name_7,cover_dance_list_age_7,cover_dance_list_name_8,cover_dance_list_age_8,cover_dance_list_name_9,cover_dance_list_age_9,cover_dance_list_name_10,cover_dance_list_age_10,teamtel,teammail,knowfrom,productsphoto) values('','$_POST[noteam]','$_POST[teamname]','$_POST[cover_dance_list_name_1]','$_POST[cover_dance_list_age_1]','$_POST[cover_dance_list_name_2]','$_POST[cover_dance_list_age_2]','$_POST[cover_dance_list_name_3]','$_POST[cover_dance_list_age_3]','$_POST[cover_dance_list_name_4]','$_POST[cover_dance_list_age_4]','$_POST[cover_dance_list_name_5]','$_POST[cover_dance_list_age_5]','$_POST[cover_dance_list_name_6]','$_POST[cover_dance_list_age_6]','$_POST[cover_dance_list_name_7]','$_POST[cover_dance_list_age_7]','$_POST[cover_dance_list_name_8]','$_POST[cover_dance_list_age_8]','$_POST[cover_dance_list_name_9]','$_POST[cover_dance_list_age_9]','$_POST[cover_dance_list_name_10]','$_POST[cover_dance_list_age_10]','$_POST[teamtel]','$_POST[teammail]','$_POST[knowfrom]','$photo_1')") or die (mysql_error()); ?> <html> <head> <title><? echo "$headtxt"; ?></title> <!-- Fireworks MX Dreamweaver MX target. Created Sat Apr 02 10:29:23 GMT+0700 (SE Asia Standard Time) 2011--> <body bgcolor="#ffffff"> <div align="center"><strong> </strong> <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr> <td width="100%" colspan="2"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#E9E9E6"> <tr> <td><div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"><br> <br> <img src="images/note_accept.png" width="64" height="64"><br> <br> บันทึกข้อมูลเรียบร้อยแล้วค่ะ<br> <br> ขอบคุณค่ะ<br> <br> <br> <br> </div></td> </tr> </table> </div></td> </tr> </table></td> </tr> <tr> <td colspan="2"><div align="center"><br> </div></td> </tr> </table> </div> </body> </html>