Commit 69ba933c authored by O'Reilly Media, Inc's avatar O'Reilly Media, Inc
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+47 −0
Changes for Programming_PHP_example_code/ch01/.svn/all-wcprops: 47 added lines, 0 removed lines.
Original line number Diff line number Diff line
K 25
svn:wc:ra_dav:version-url
V 63
/!svn/ver/563467/internal/books/9781449392772/current/code/ch01
END
hello_world.php
K 25
svn:wc:ra_dav:version-url
V 79
/!svn/ver/507439/internal/books/9781449392772/current/code/ch01/hello_world.php
END
library.sql
K 25
svn:wc:ra_dav:version-url
V 75
/!svn/ver/507439/internal/books/9781449392772/current/code/ch01/library.sql
END
form.php
K 25
svn:wc:ra_dav:version-url
V 72
/!svn/ver/563467/internal/books/9781449392772/current/code/ch01/form.php
END
phpinfo.php
K 25
svn:wc:ra_dav:version-url
V 75
/!svn/ver/507439/internal/books/9781449392772/current/code/ch01/phpinfo.php
END
booklist.php
K 25
svn:wc:ra_dav:version-url
V 76
/!svn/ver/563467/internal/books/9781449392772/current/code/ch01/booklist.php
END
button.png
K 25
svn:wc:ra_dav:version-url
V 74
/!svn/ver/507439/internal/books/9781449392772/current/code/ch01/button.png
END
graphic_example.php
K 25
svn:wc:ra_dav:version-url
V 83
/!svn/ver/507439/internal/books/9781449392772/current/code/ch01/graphic_example.php
END
+266 −0
Changes for Programming_PHP_example_code/ch01/.svn/entries: 266 added lines, 0 removed lines.
Original line number Diff line number Diff line
10

dir
611521
https://prod.oreilly.com/internal/books/9781449392772/current/code/ch01
https://prod.oreilly.com



2012-10-10T13:47:44.062080Z
563467
pbmacintyre@gmail.com














116dc4a9-b042-40dd-b87b-4fe04d0a746b

hello_world.php
file




2013-01-02T22:09:28.784723Z
c299575e71956791c2b11b3871ba2d80
2012-05-16T02:46:18.247293Z
507439
pbmacintyre@gmail.com





















129

library.sql
file




2013-01-02T22:09:28.795723Z
d4219580940917649c470a315906fe6f
2012-05-16T02:46:18.247293Z
507439
pbmacintyre@gmail.com





















1815

form.php
file




2013-01-02T22:09:28.797724Z
5356fa2a27b3dbdf918dd651292c1983
2012-10-10T13:47:44.062080Z
563467
pbmacintyre@gmail.com





















390

phpinfo.php
file




2013-01-02T22:09:28.799727Z
c744fdef5ef0292ab0359f9fbde288fb
2012-05-16T02:46:18.247293Z
507439
pbmacintyre@gmail.com





















22

booklist.php
file




2013-01-02T22:09:28.801728Z
7a07d4206b2550bb9bb239a881601daa
2012-10-10T13:47:44.062080Z
563467
pbmacintyre@gmail.com





















999

button.png
file




2013-01-02T22:09:28.805715Z
c98278583908d16d84173f1cd4f8165d
2012-05-16T02:46:18.247293Z
507439
pbmacintyre@gmail.com
has-props




















206

graphic_example.php
file




2013-01-02T22:09:28.807723Z
70a66658a15947553eb396dcfa8e8868
2012-05-16T02:46:18.247293Z
507439
pbmacintyre@gmail.com





















948

+5 −0
Changes for Programming_PHP_example_code/ch01/.svn/prop-base/button.png.svn-base: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
K 13
svn:mime-type
V 24
application/octet-stream
END
+46 −0
Changes for Programming_PHP_example_code/ch01/.svn/text-base/booklist.php.svn-base: 46 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

$myDB = new mysqli('localhost', 'root', '', 'library');
// make sure the above credentials are correct for your environment
if ($myDB->connect_error) 
{
	die('Connect Error (' . $myDB->connect_errno . ') '
			. $myDB->connect_error);
}

$sql = "SELECT * FROM books WHERE available = 1 ORDER BY title";

$result = $myDB->query($sql);

?>

<table cellSpacing="2" cellPadding="6" align="center" border="1">

  <tr>
    <td colspan="4">
      <h3 align="center">These Books are currently available</h3>
    </td>
  </tr>

  <tr>
    <td align="center">Title</td>
    <td align="center">Year Published</td>    
    <td align="center">ISBN</td>
  </tr>
<?php
While ($row = $result->fetch_assoc() ) {
    echo "<tr>";
    echo "<td>";
    echo stripslashes($row["title"]);
    echo "</td><td align='center'>";
    echo $row["pub_year"];
    echo "</td><td>";      
    echo $row["ISBN"];
    echo "</td>";
    echo "</tr>";
}
?>
</table>

</body>
</html>
 No newline at end of file
+206 B

File added.

No diff preview for this file type.

Loading