کد وارد کردن اطلاعات به دیتا بیس mysql در php
من این کد پی اچ پی را نوشتم ولی هر چی تستش می کنم درست کار نمی کنه آیا این کد درسه؟؟ واگه نه مشکلش چیه؟؟؟
این کد اطلاعاتی که تویه یه صفحه دیگه بوده را وارد بانک اطلاعاتی می کنه
[PHP]
$t1 = $_post['t1'];
$t2 = $_post['t2'];
$t3 = $_post['t3'];
$t4 = $_post['t4'];
$t5 = $_post['t5'];
$t6 = $_post['t6'];
$t7 = $_post['t7'];
$t8 = $_post['t8'];
$t9 = $_post['t9'];
$t10 = $_post['t10'];
$t11 = $_post['t11'];
$t12 = $_post['t12'];
$t13 = $_post['t13'];
$t14 = $_post['t14'];
$t15 = $_post['t15'];
$date = $_post['date'];
$db = mysql_connect('localhost','root','test');
if (!$db)
echo "your connecton have a problem";
mysql_select_db('clist',$db);
$query = "insert into list(cl1,cl2,cl3,cl4,cl5,cl6,cl7,cl8,cl9,cl10,cl11 ,cl12,cl13,cl14,cl15) values
(".$t1.",".$t2.",".$t3.",".$t4.",".$t5.",".$t6."," .$t7.",".$t8.",".$t9.",".$t10.",".$t11.",".$t12.", ".$t13.",".$t14.",".$t15.")";
$result = mysql_query($guery);
if($result)
echo "good job";
mysql_close($db)
?>[/PHP]
خیلی فوریه لطفا کمک کنید
ممنون