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
displayPageFooter();
?>
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
Web page | Number of visits | Last visit |
---|---|---|
getValueEncoded("pageUrl")?> | getValueEncoded("numVisits")?> | getValueEncoded("lastAccess")?> |
displayPageFooter();
?>
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
- 最新文章
- 热门排行
上一篇: 昨天微博看见有人出了一道题解决方法
下一篇: PHP获取WorPress分门别类
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论