当前位置: 首页>>代码示例>>PHP>>正文


PHP Books::update_edition方法代码示例

本文整理汇总了PHP中Books::update_edition方法的典型用法代码示例。如果您正苦于以下问题:PHP Books::update_edition方法的具体用法?PHP Books::update_edition怎么用?PHP Books::update_edition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Books的用法示例。


在下文中一共展示了Books::update_edition方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

/**
 * This Script only tests mysql connection
 */
include_once 'include/class.books.php';
/*
make asoociative array for testing
*/
$insert_data = array("isbn" => "278914", "up_date" => "2016-02-06 18:07:57", "title" => "C How to Program", "author" => "Paul Dietel & Harvey", "publisher" => "", "p_year" => "2016-02-06 18:07:57", "edition" => "7", "lang" => "English", "category" => "programming", "tags" => "c how to program", "pages" => "10", "rating" => "", "comment" => "", "count" => "0");
$books = new Books();
echo "<h1>Successfully Created Connection</h1>";
$books->add_records($insert_data);
$isbn = "\t9780132990448";
$books->update_edition($isbn, 7);
$books->delete_record($isbn);
$books->bookExist(3);
$books->getAuthorName(278);
$books->authorsList();
$books->booksList();
$books->getBooksCount();
$authorName = "Paul Dietel & Harvey";
$books->books_by_author($authorName);
$categoryName = "programming";
$books->books_by_category($categoryName);
$p_year = "2016-02-07 00:02:19";
$books->books_by_p_year($p_year);
$books->books_sortby_up_date();
$books->books_sortby_p_year();
$books->books_sortby_title();
$books->books_by_rating(4);
开发者ID:devists,项目名称:booksDen,代码行数:31,代码来源:connTest.php


注:本文中的Books::update_edition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。