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
$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
$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