Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $db=mysqli_connect("localhost","root","","ura");
- if(isset($_GET["IDS"]))
- {
- $IDS=$_GET["IDS"];
- $query=mysqli_query($db,"SELECT*FROM studenti WHERE IDS=$IDS");
- $rezultatstudent=mysql_fetch_assoc($query);
- ?>
- Nume:<input type="text" name="nume" value="<?php echo $rezultatstudent["nume"];?>"><br>
- Sex:
- <?php
- if(rezultatstudent["sex"]=='M')
- echo '<input type="radio" name="sex" checked value="'.<?php echo $rezultatstudent["Sex"].'">M';
- else
- echo '<input type="radio" name="sex" checked value="'.<?php echo $rezultatstudent["Sex"].'">F';?>
- ?>
- <br>
- An:<input type ="text" maxlength="1" size="1" name="an" value="<?php echo $rezultatstudent["an"];?>"><br>
- Varsta:<input type="text" maxlenght="2" size="2" name="varsta" value="<?php echo $rezultatstudent["varsta"];?>"><br>
- User:<input type="text" maxlenght="2" size="2" name="user" value="<?php echo $rezultatstudent["user"];?>"><br>
- Pass:<input type="text" maxlenght="2" size="2" name="pass" value="<?php echo $rezultatstudent["pass"];?>"><br>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement