Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo '<link type="text/css" rel="stylesheet" href="style.css">';
- require_once 'connect.php';
- echo '<div id="header">';
- echo "valami szoveg";
- echo '</div>';
- if(isset($_POST['gomb'])){
- echo 'gomb megnyomva';
- if(isset($_POST['neve'])){
- echo 'gomb bepipalva';
- }else{
- echo 'gomb nincs bepipalva';
- }
- }else{
- echo 'gomb nincs megnyomva';
- }
- if($result = $db->query("SELECT * FROM `tomeges`")){
- if($result->num_rows){
- while($row=$result->fetch_assoc()){
- $id=$row['id'];
- echo '<div id="container">';
- echo '<form action="index.php" method = "post">';
- echo '<table border = "1">';
- echo '<tr>';
- echo '<td>'.$row['mezo'].'</td>';
- echo '<td><input type="checkbox" name="neve"></td>';
- echo '<td><input type="submit" name="gomb"></td>';
- echo '</tr>';
- echo '<table>';
- echo '</div>';
- }
- }else{
- echo 'no rows<br/>';
- }
- }
- $db->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement