Parse error: parse error, expecting `']'' in /home/example.org/pu blic_html/moodle/lang /en/dialogue.php on line 61

Parse error: parse error, expecting `']'' in /home/example.org/pu blic_html/moodle/lang /en/dialogue.php on line 61

by g k -
Number of replies: 2
When I tried to log in as a guest, I got this error.  Any solutions?
Average of ratings: -
In reply to g k

Re: Parse error: parse error, expecting `']'' in /home/example.org/pu blic_html/moodle/lang /en/dialogue.php on line 61

by ram reddy -
<?php
$con = mysql_connect("localhost", " ", " " );
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
$sql ="INSERT INTO details (Name, email,phone no,adress ,message) VALUES('$_POST[Name]','$_POST[email]','$_POST[phone no]','$_POST[adress]','$_POST[message]') " ;
if (!mysql_query($sql,$con));
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";mysql_close($con);
?>
if u excute this am getting same parse error tht may be in compilation error if u got the answer tell me how is it possible ramreddy.57@gmail.com
In reply to g k

Re: Parse error: parse error, expecting `']'' in /home/example.org/pu blic_html/moodle/lang /en/dialogue.php on line 61

by ram reddy -
<?php
$con = mysql_connect("localhost", " ", " " );
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
$sql ="INSERT INTO details (Name, email,phone no,adress ,message) VALUES('$_POST[Name]','$_POST[email]','$_POST[phone no]','$_POST[adress]','$_POST[message]') " ;
if (!mysql_query($sql,$con));
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";mysql_close($con);
?>
if u excute this am getting same parse error tht may be in compilation error if u got the answer tell me how is it possible ramreddy.57@gmail.com