Пример #1
0
            $password = $row['password'];
            $email = $row['email'];
            $image = $row['image'];
            $about = $row['about'];
            $pic = $row['pic'];
            $last_logged = $row['last_logged'];
            $joined = $row['joined'];
            $age = $row['age'];
            $gender = $row['gender'];
            $query3 = "SELECT * FROM posts WHERE under = '{$_GET['name']}' AND p_by = '{$_GET['name']}' ORDER BY date DESC LIMIT {$start2}, {$per_page2}";
            $result3 = mysql_query($query3);
            while ($row = mysql_fetch_array($result3)) {
                $id3 = $row['id'];
                $under = $row['under'];
                $p_by = $row['p_by'];
                $message = $row['message'];
                $date = $row['date'];
                $query11 = "SELECT * FROM users WHERE name = '{$_GET['name']}' AND child = '{$_COOKIE['parent']}'";
                $result11 = mysql_query($query11);
                while ($row11 = mysql_fetch_array($result11)) {
                    $idb = $row11['id'];
                    $nameb = $row11['name'];
                    $passwordb = $row11['password'];
                    $last_loggedb = $row11['last_logged'];
                    ?>

<br /><br />
<form action="manage_kid.php" method="get">
<input type="hidden" name="options" value="true" />
<input type="hidden" name="id" value="<?php 
                    echo $idb;
Пример #2
0
<?php 
        }
        $query = "SELECT * FROM {$_COOKIE['user']} WHERE name = '{$_GET['user']}' AND verifed = 'yes'";
        $result = mysql_query($query);
        while ($row = mysql_fetch_array($result)) {
            echo '<br /><br />';
            $query = "SELECT * FROM posts WHERE under = '{$_GET['user']}' ORDER BY date DESC LIMIT 25";
            $result = mysql_query($query);
            while ($row = mysql_fetch_array($result)) {
                $id = $row['id'];
                $under = $row['under'];
                $by = $row['p_by'];
                $message = $row['message'];
                $date = $row['date'];
                $date = returnMess($row['date']);
                if ($under === $_GET['user']) {
                    ?>


<ul id="post_show">
<li>
<a href="people_profile.php?user=<?php 
                    echo $by;
                    ?>
"><img src="User_Images/none.png" id="user" width="50" height="50" alt="<?php 
                    echo $by;
                    ?>
"></a>

<div id="delete_mess">