Beispiel #1
0
				<div id="content-container">
					<div id="the-wall-wrap" class="row">
						<?php 
include "dbcrud.php";
$db = new connect();
$db->connect_it("yoletsgo");
//$db->connect_it("db107123_yoletsgo");
//$db->getdata("SELECT * FROM `user_table` ORDER BY `id` DESC");
$rec_limit = 9;
if (!isset($_GET['page'])) {
    $page = 1;
} else {
    $page = $_GET['page'];
}
$from = $page * $rec_limit - $rec_limit;
$db->getdata("SELECT * FROM `user_table` ORDER BY `id` DESC LIMIT {$from}, {$rec_limit}");
$total = mysql_num_rows($db->query_store);
if ($total > 0) {
    while ($db->showdata()) {
        $reasonType = rand(1, 3);
        ?>

									<div class="col-4 col-m-6">
										<div class="wall-photo-container">
											<img src="./img/user/<?php 
        echo $db->data[11] . '.png';
        ?>
">
										</div>
										<div class="reason-bg-wrap">
											<div class="reason-bg reason-<?php