... Increases by one, and returns the incremented value $value++ Returns the value, then increases by one $value Decreases by one, and returns the decremented value $value Returns the value, then decreases ... from -8388 608 to 8388 607 (Adding the unsigned parameter allows storage of to 167772 15. ) bigint(length) Numeric field that stores integers from -922337 203 6 854 7 75 808 to 922337 203 6 854 7 75 807 (Adding ... the unsigned parameter allows storage of to 1844674 407 3 709 55 16 15. ) tinytext Allows storage of up to 255 characters mediumtext Allows storage of up to 16772 15 characters longtext Allows storage of...
... they are set and run the DELETE query if (isset($_GET[‘u’], $_GET[‘ml’])) { $sql = “DELETE FROM ml_subscriptions “ “WHERE user_id=” $_GET[‘u’] “ AND ml_id=” $_GET[‘ml’]; $result = mysql_ query($sql, ... break; case ‘confirm’: if (isset($_GET[‘u’], $_GET[‘ml’])) { $sql = “UPDATE ml_subscriptions SET pending =0 “ “WHERE user_id=” $_GET[‘u’] “ AND ml_id=” $_GET[‘ml’]; mysql_ query($sql, $conn); $sql ... connect to MySQL database ‘ mysql_ error()); mysql_ select_db(SQL_DB, $conn); if (isset($_GET[‘u’], $_GET[‘ml’])) { $sql = “DELETE FROM ml_subscriptions “ “WHERE user_id=” $_GET[‘u’] “ AND ml_id=”...
... date and time as yyyy-mm-dd hh:mm:ss Allows values from 100 0 -01 -01 00 :00 :00 to 9999-12-31 23 :59 :59 dec(length,dec) Equal to decimal field decimal(length,dec) Numeric field that can store decimals ... attribute allows only non-negative values double(length,dec) A medium-sized floating point number that stores values from -1.7976931348623 157 E+ 308 to -2.22 50 7 3 858 50 7 201 4E- 308 , 0, and 2.22 50 7 3 858 50 7 201 4E- 308 ... value != value (field is not equal to value) value (field is not equal to value) BETWEEN value1 AND value2 NOT BETWEEN value1 AND value2 LIKE value NOT LIKE value IS NULL IS NOT NULL IN (value1,...
... 54 9 26 Debugging 55 1 Programming Errors 55 1 Syntax Errors 55 2 Runtime Errors 55 3 Logic Errors 55 8 Variable Debugging Aid 55 9 Error Reporting Levels 56 2 Altering the Error Reporting Settings 56 3 ... Working? 898 Installing Apache, PHP, andMySQL Under Windows 899 Installing MySQL Under Windows 900 Installing Apache Under Windows 901 Installing PHP for Windows 903 Installing PEAR 9 05 Setting Up ... Environment: getenv() and putenv() 4 50 Further Reading 4 50 Next 4 50 20 Using Network and Protocol Functions 451 Examining Available Protocols 451 Sending and Reading Email 452 Using Data from Other Websites...
... Dynamically 50 0 Temporarily Altering the Runtime Environment 50 0 Highlighting Source Code 50 1 Using PHP on the Command Line 50 2 Next 50 3 V Building Practical PHP andMySQL Projects 24 Using PHP and ... Mechanisms 200 Further Reading 201 Next 201 II Using MySQL Designing Your Web Database 2 05 Relational Database Concepts 206 Tables 206 Columns 207 Rows 207 Values 207 Keys 207 Schemas 208 Relationships ... Signatures 3 50 Digital Certificates 351 Secure Web Servers 352 Auditing and Logging 353 Firewalls 353 Data Backups 354 Backing Up General Files 354 Backing Up and Restoring Your MySQL Database 354 Physical...
... Standard Book Number: 0- 672-3 252 5-X Library of Congress Catalog Card Number: 200 21 155 73 Printed in the United States of America First Printing: February 200 3 06 05 04 03 Trademarks All terms mentioned ... Laura Thompson DEVELOPER’S LIBRARY Sams Publishing, 201 West 103 rd Street, Indianapolis, Indiana 462 90 00 52 5x fm 1/24 /03 2 :56 PM Page iv PHP andMySQLWebDevelopment Second Edition Acquisitions ... with database driven Web application programming I wish more computer books were organized this way.” —Sean C Schertell 00 52 5x fm 1/24 /03 2 :56 PM Page iii PHP andMySQLWebDevelopment Second...
... and Retrieving Data Saving Data for Later 51 Storing and Retrieving Bob’s Orders Overview of File Processing 53 51 52 00 52 5x fm x 1/24 /03 2 :56 PM Page x Contents Opening a File 53 File Modes 53 ... Building Web Forums 6 75 30 Generating Personalized Documents in Portable Document Format (PDF) 7 05 31 Connecting to Web Services with XML and SOAP 739 VI Appendixes A Installing PHP andMySQL 789 B Web ... 00 52 5x fm 1/24 /03 2 :56 PM Page vii IV Advanced PHP Techniques 16 Interacting with the File System and the Server 337 17 Using Network and Protocol Functions 357 18 Managing the Date and...
... 00 52 5x fm xii 1/24 /03 2 :56 PM Page xii Contents Joining and Splitting Strings with String Functions 103 Using explode(), implode(), and join() 103 Using strtok() 104 Using substr() 104 Comparing ... Inheritance 154 Designing Classes 155 Writing the Code for Your Class 156 Next 1 65 II Using MySQL Designing Your Web Database 169 Relational Database Concepts 1 70 Tables 1 70 Columns 1 70 Rows 171 Values ... Command 1 85 Types and Levels of Privilege 186 The REVOKE Command 188 Examples Using GRANT and REVOKE 189 Setting Up a User for the Web 1 90 Logging Out as root 1 90 Using the Right Database 1 90 Creating...