$result = mysql_query("SELECT * FROM customers WHERE loginid= $_POST['loginid'] AND accpassword= $_POST['accpassword']");
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\wamp\www\index.php on line 6
Basic PHP syntax: You cannot use quoted array keys within a "
-quoted string:
$value = "$array['key']"; // bad
$value = "$array[key]"; // ok
$value = "{$array['key']}"; //ok, alternate syntax
You are also vulnerable to SQL injection attacks. This is EXTRAORDINARLY bad since you say this is for online banking code...
Multiple problems here.
1: Your sql variable values are not encased in single quotes.
2: Your quoted variables (arrays) need curly braces around them
ie: SELECT foo FROM tbl WHERE bar = '"{$_POST['something']}"'
3: Your variables are not escaped/clean. You should SANITIZE your data!