Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $title = "Message Board"; // Page title;
- ?>
- <html>
- <head>
- <title>
- <?php echo $title; ?></title>
- <meta http-equiv="content-type" content="text/html;charset=utf-8" />
- <meta name="generator" content="Geany 0.19.1" />
- <style type = "text/css">
- html,body {
- background: #66CCFF;
- margin-right:8px;
- margin-left: 8px;
- margin-top: 8px;
- font-family: Arial, Sans-serif;
- word-wrap: break-word;
- }
- div.answer {
- border-color:#000000;
- border: 1px solid black;
- width:560px;
- background-color: #3399CC;
- }
- </style>
- </head>
- <body>
- <!-- Форма ответа -->
- <?php require("msg_form.php"); ?>
- <p>
- <!-- Сообщения -->
- <?php// require("msg_board"); ?>
- <?php
- require("config.php");
- $con = mysql_connect($db_servername, $db_username, $db_password);
- mysql_select_db("m87_db", $con);
- $query = "SELECT `msg_author`, `msg_text`, `msg_date`, `msg_author_ip`
- FROM `messages`";
- $sql = mysql_query($query) or die(mysql_error());
- //print_r(mysql_fetch_array($sql));
- for ($c=0; $c<mysql_num_rows($sql); $c++)
- {
- $node = mysql_fetch_assoc($sql);
- print_r($node);
- echo '<br>';
- }
- ?>
- <p>.(made by M87Dev)</p>
- </body>
- </html>
Add Comment
Please, Sign In to add comment