少了个}
<?php
class book
{
private $title;
private $isbn;
private $copies;public function _construct($isbn)
{
$this->setIsbn($isbn);
$this->getTitle();
$this->getNumberCopies();
}public function setIsbn($isbn)
{
$this->isbn=$isbn;
}public function getTitle()
{
$this->title="Beginning Python";
print "Title: ".$this->title."<br/>";
}public function getNumberCopies()
{
$this->copies="5";
print "Number copies available:".$this->copies."<br/>";
}}$bok=new book("159059519x");
?>
<?php
class book
{
private $title;
private $isbn;
private $copies;public function _construct($isbn)
{
$this->setIsbn($isbn);
$this->getTitle();
$this->getNumberCopies();
}public function setIsbn($isbn)
{
$this->isbn=$isbn;
}public function getTitle()
{
$this->title="Beginning Python";
print "Title: ".$this->title."<br/>";
}public function getNumberCopies()
{
$this->copies="5";
print "Number copies available:".$this->copies."<br/>";
}}$bok=new book("159059519x");
?>
解决方案 »
- 求一个简单的SNS代码
- 又遇到个sql语句的问题
- 在局域内做BT服务器```大家给点意见 用什么服务器搭建最好? (像bt.5qzone.net这样的)
- PHP程序如何识别文本框中的换行符?
- 一个很棘手的问题?
- 请问在php中,“回车换行键”用什么代码表示?在线等候!
- 一个用session传递对象的典型例子,和用面向对象编程的朋友共同分享
- 请问在安装pws时,出现“Microsoft Transaction Server未成功地安装。”如何解决?
- 关于树的问题
- PHP验证码例程 在我机器上显示为一个红叉,请高手看看这是什么问题啊?
- 请教做一个类的问题?
- 在用fsockopen()实现模拟登录时,出错了?
这是因为phpMyAdmin无法读取你的配置文件!
可能是因为 php 发现了语法错误或 php 未能找到文档。
直接使用下面的链接调用配置文件,然后读取您收到的 php 错误提示。
通常的错误都是因为某处漏了引号或分号。
如果您看到的是一个空白页,则代表没有任何问题。
http://(这时是你虚拟服务器的地址)/phpMyAdmin/show_config_errors.php
如是是空白页,则代表没有问题了.
unicode-gb.tab UTF-8 到 gb2312 转换码表这个问题,这个搜索引擎搜索中文是可以的可其他语言就不行了。搜索其他语言的网站出现的内容是空的。有时候是乱码。UTF-8 可以转换成 unicod 形式吗。那为高手能帮我解答。谢谢。 我的QQ号码是:346746347