Note that there are some explanatory texts on larger screens.

plurals
  1. POin query Whats the error pls solve it
    text
    copied!<p>i have the following error</p> <blockquote> <p>insert into staff_service(customer_id,workorder_no,service_date,current_date) values('1','414','2011-03-14',CURDATE()) 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_date) values('1','414','2011-03-14',CURDATE())' at line 1</p> </blockquote> <pre><code>&lt;?php session_start(); include "common/config.php"; $file=file("Template/staffservice_management.html"); $filecontent=join("",$file); include("user.php"); /*$sql = "SELECT id,customer_name FROM customer "."ORDER BY customer_name"; $rs = mysql_query($sql); while($row = mysql_fetch_array($rs)) { echo "&lt;option value=\"".$row['id']."\"&gt;".$row['customer_name']."&lt;/option&gt;"; echo "&lt;option value=\"".$row['id']."\"&gt;".$row['customer_name']."&lt;/option&gt;"; echo "&lt;option value=\"".$row['id']."\"&gt;".$row['customer_name']."&lt;/option&gt;"; }*/ $sql="select * from customer"; $res=mysql_query($sql); while($row=mysql_fetch_array($res)) { $list_option.="&lt;option value='".$row['id']."'&gt;".$row['customer_name']."&lt;/option&gt;"; } $cust=$_POST['cname']; $work=$_POST['won']; $date=$_POST['startdate']; if($_REQUEST['submit']=='submit') { $sqle=("insert into staff_service(customer_id,workorder_no,service_date,current_date) values('$cust','$work','$date',CURDATE())"); $Insertprocess=$db-&gt;insert_data_id($sqle); echo "&lt;script&gt;alert(' Details Successfully created');&lt;/script&gt;;"; echo "&lt;script&gt;location.href='staffservice_management.php';&lt;/script&gt;;"; } $filecontent=preg_replace("/{{(.*?)}}/e","$$1",$filecontent); echo $filecontent; ?&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload