11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• INDEXwww.it-ebooks.info--pager[=pagername] option, 514pages, session-enabled, 371–372paging output, with mysql client, 509parameter variable, 619parametersconfiguration, viewing, 497–499for connecting to database server withPDO, 611database connection, 471function, 59for stored routines, 630–631parent classes, determining, 156parent constructors, invoking, 151–152parent keyword, 151parent parameter, 393parent::__construct( ) method, 152, 167parse_ini_file( ) function, 25parsing pathsabsolute paths, 232retrieving directories, 230–231retrieving filenames, 230parsing query resultswith fetch_array( ) method, 597–598with fetch_object( ) method, 596–597parsing SimpleXMLcreating XML from SimpleXML objects,423elements, 421–422node's children, 423using XPath to retrieve nodeinformation, 424participants table, transactions example,712passing parameters, to views in <strong>MySQL</strong>,663passthru( ) function, 251, 254Password column, 563, 565–566password new-password command, 516--password option, 514password parameter, 611password recoveries, 315–318--password[=name] option, 521--password=your_password option, 726passwords, administrator, 495PATH variable, 450pathinfo( ) function, 231pathsand directories, run-time directives for<strong>PHP</strong>, 35–36parsingabsolute paths, 232retrieving directories, 230–231retrieving filenames, 230Patrons.class.php file, 157pattern parameter, 203–204patternsmatching all occurrences of, 202replacing all occurrences of, 203–204searching for, 201PCRE (Perl Compatible RegularExpressions), 3PDO (<strong>PHP</strong> Data Objects) databaseabstraction layerattributes forretrieving, 615–616setting, 616bindColumn( ) method, 624–625connecting to serverconnection error handling, 613options for, 612–613parameters embedded intoconstructor, 611parameters in a file, 611referring to php.ini file, 611–612database options with, 610error handlingoverview, 613SQL error codes, 614SQL error messages, 614–615exec( ) method, 616–617installing, 610overview, 608–609prepared statements withbindParam( ) method, 619–621execute( ) method, 619prepare( ) method, 618query( ) method, 617retrieving data withcolumnCount( ) method, 621fetch( ) method, 621–623fetchAll( ) method, 623fetchColumn( ) method, 624transactions withbeginTransaction( ) method, 625–626commit( ) method, 626rollback( ) method, 626pdo_drivers( ) function, 610PDO_FETCH_BOUND setting, 624PDO_<strong>MySQL</strong> extension, 589PDO::ATTR_AUTOCOMMIT option, 612PDO::ATTR_CASE option, 612766

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!