Inserting problem in php
<p>Can u tell me what happen to my code?
it shows the error</p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\xampp\dhiraj\queryverify.php on line 12</p>
</blockquote>

<p>here is my code</p>

<pre><code>&lt;head&gt;
&lt;style&gt;
#margin_left{margin-left:400px;
height:400px;}
#spanning{margin-left:70px;}
#spanning_gender{margin-left:66px;}
#spanning_marstatus{margin-left:27px;}
#spanning_city{margin-left:82px;}
#spanning_country{margin-left:62px;}
#spanning_religion{margin-left:63px;}
#spanning_crime{margin-left:74px;}
#spanning_crimetype{margin-left:39px;}
#table{border:thick;border-color:#09F;}
#insert{margin-left:140px;}
#foot{
background:none;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php 
include('database.php');
include('commonheader.php');
?&gt;
&lt;form method="get" name="queries" action="queryverify.php"&gt;
&lt;h3 align="center"&gt;&lt;font face="Tahoma, Geneva, sans-serif" color="#6C6"&gt;Queries&lt;/font&gt;&lt;/h3&gt;
&lt;div id="margin_left"&gt;&lt;table id="table" border="1"cellpadding="10"&gt;
&lt;tr&gt;
&lt;td&gt;
Name: &lt;span id="spanning"&gt;&lt;input type="text" name="name" size="30"&gt;&lt;/span&gt;&lt;br/&gt;
Gender:&lt;span id="spanning_gender"&gt;&lt;select id="gender" size="1"&gt;&lt;option value="r"&gt;male&lt;/option&gt;&lt;option value="m"&gt;female&lt;/option&gt;&lt;/select&gt;&lt;/span&gt;&lt;br/&gt;
Marital Status:&lt;span id="spanning_marstatus"&gt;&lt;select size="1" id="marstatus"&gt;&lt;option value="f"&gt;Married&lt;/option&gt;&lt;option value="g"&gt;Unmarried&lt;/option&gt;&lt;option value="h"&gt;Unknown&lt;/option&gt;&lt;/select&gt;&lt;/span&gt;&lt;br/&gt;
City: &lt;span id="spanning_city"&gt;&lt;input type="text" name="city" size="30"&gt;&lt;/span&gt;&lt;br/&gt;
Country:&lt;span id="spanning_country"&gt;&lt;input type="text" name="country" size="30"&gt;&lt;/span&gt;&lt;br/&gt;
Religion:&lt;span id="spanning_religion"&gt;&lt;input type="text" name="religion" size="30"&gt;&lt;/span&gt;&lt;br/&gt;
Crime:&lt;span id="spanning_crime"&gt;&lt;select id="crime" size="1"&gt;&lt;option value="a"&gt;Murder&lt;/option&gt;&lt;/select&gt;&lt;/span&gt;&lt;br/&gt;
Crime Type:&lt;span id="spanning_crimetype"&gt;&lt;select id="crimetype" size="1"&gt;&lt;option value="b"&gt;Half Murder&lt;/option&gt;&lt;/select&gt;&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div id="insert"&gt;&lt;input type="submit" name="Insert" value="Insert"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;?php include('footer.php');?&gt;
&lt;br /&gt;
&lt;br/&gt;
&lt;/body&gt;
</code></pre>

<p>queryverify.php</p>

<pre><code>&lt;?php
   $name = $_GET['name'];
   $gender=$_GET['gender'];
   $marstatus=$_GET['marstatus'];
   $city=$_GET['city'];
   $country=$_GET['country'];
   $religion=$_GET['religion'];
   $crime=$_GET['crime'];
   $crimetype=$_GET['crimetype'];
   include('database.php');
    $query="insert into criminal(cid,name,gender,marital_status,religion,city,country,crime,crime_types) values(NULL,'".$name."','".$gender."','".marstatus."','".$religion."','".$city."','".$country."','".$crime."','".$crimetype."')";
 mysql_query($query)or die mysql_error();
  ?&gt;
</code></pre>
