错误消息请帮忙 [英] error message help please

查看:65
本文介绍了错误消息请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的错误消息。 解析错误:语法错误,第65行/home/content/25/11427125/html/dbConfig.php中的意外$结束





有人帮我解决了这个错误,请大家好。第65行是最后一行

this is my error message. "Parse error: syntax error, unexpected $end in /home/content/25/11427125/html/dbConfig.php on line 65"


someone help me out with this error please id be greatful. and line 65 is the last line

include ("signup.html");




// Replace the variable values below
// with your specific database information.
$host = "68.178.142.193";
$user = "RootSpread";
$pass = "Mice11223@";
$db   = "accounts";
// This part sets up the connection to the 
// database (so you don't need to reopen the connection
// again on the same page).
$ms = mysql_pconnect($host, $user, $pass);
if ( !$ms )
{
echo "Error connecting to database.\n";
}
// Then you need to make sure the database you want
// is selected.
mysql_select_db($db);

if ( $_GET["op"] == "reg" )
 {
 $bInputFlag = false;
 foreach ( $_POST as $field )
  {
  if ($field == "")
   {
   $bInputFlag = false;
   }
  else
   {
   $bInputFlag = true;
   }
  }
 if ($bInputFlag == false)
  {
  die("Problem with your registration info.
   Please go back and try again.");
}

$q = "INSERT INTO `accounts` (`firstname`,`initial`,`lastname`,`email`,`password`,`dob`,`number`,`sex`) "

  ."VALUES ('".$_POST["firstname"]."', 
    '".$_POST["initial"]."', 
    '".$_POST["lastname"]."', 
    '".$_POST["email"]."', '"
  ."PASSWORD('".$_POST["password"]."'), '".$_POST["dob"]."', '".$_POST["number"]."', '".$_POST["sex"]."') ";

 $r = mysql_query($q);
 
 if ( !mysql_insert_id() )
  {
  die("Error: User not added to database.");
  }
 else
  {

  Header("Location: index.html");
  }

if( $_GET["op"] == "thanks" )
 {
 echo "<h2>Thanks for registering!</h2>";
}
?> //this is line 65

推荐答案

结束于第65行的/home/content/25/11427125/html/dbConfig.php





有人帮助我解决这个错误请尽情享受。第65行是最后一行

end in /home/content/25/11427125/html/dbConfig.php on line 65"


someone help me out with this error please id be greatful. and line 65 is the last line
include ("signup.html");




// Replace the variable values below
// with your specific database information.


host =68.178.142.193;
host = "68.178.142.193";


user =RootSpread;
user = "RootSpread";


这篇关于错误消息请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆