Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!isset($_SESSION)) {
- session_start();
- }
- ?>
- <html>
- <head>
- </head>
- <body>
- <?php
- $mysql_host = "127.0.0.1";
- $mysql_database = "u0065300_lavka";
- $mysql_user = "u0065300_lavka";
- $mysql_password = "lavka";
- mysql_connect($mysql_host, $mysql_user, $mysql_password);
- mysql_select_db($mysql_database);
- mysql_query("SET NAMES 'utf8'");
- $result = mysql_query("select * from books");
- $book_index = 0;
- $tred = false;
- while ($book = mysql_fetch_assoc($result))
- {
- if ($book_index == 0)
- {
- $tred = false;
- }
- $book_index++;
- ?>
- <script type="text/javascript">
- $(document).ready(function(){
- }
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement