欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

sql语法异常?

程序员文章站 2024-02-17 21:28:22
...
sql语法错误??
Query failed:SQLSTATE[42000]: Syntax error or access violation: 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 'FROMmembers WHERE id = 0' at line 1

require_once("common.inc.php");
require_once("config.php");
require_once("Member.class.php");
require_once("LogEntry.class.php");

$memberId = isset($GET_["memberId"])?(int)$_GET("memberId"):0;

if(!$memberId = Member::getMember($memberId)){
displayPageHeader("Error");
echo"
Member not found.
";
displayPageFooter();
exit;
}

$logEntries = LogEntry::getLogEntries($memberId);
displayPageHeader("View member: ".$member->getValueEncoded("firstName")." ".$member->getValueEncoded("lastName"));

?>

Username

getValueEncoded("username")?>

First name

getValueEncoded("firstname")?>

Last name

getValueEncoded("lastname")?>

Joined on

getValueEncoded("joinData")?>

Gender

getGenderString()?>

Favorite genre

getFavoriteGenreString()?>

Email address

getValueEncoded("emailAddress")?>

Other interests

getValueEncoded("otherInterests")?>



Access log









$rowCount = 0;
foreach($logEntries as $logEntry){
$rowCount++;
?>
>




}
?>
Web page Number of visits Last visit
getValueEncoded("pageUrl")?> getValueEncoded("numVisits")?> getValueEncoded("lastAccess")?>



Back


displayPageFooter();
?>

网友评论

文明上网理性发言,请遵守 新闻评论服务协议

我要评论
  • sql语法异常?
  • 专题推荐

    作者信息
    sql语法异常?

    认证0级讲师

    推荐视频教程
  • sql语法异常?javascript初级视频教程
  • sql语法异常?jquery 基础视频教程
  • 视频教程分类