Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- $con = mysql_connect("localhost","fnys_se","fewfwe");
- if (!$con)
- {
- die('Kunde inte ansluta: ' . mysql_error());
- }
- $fnamn = $_POST['fnamn'];
- $fnamn = trim($fnamn);
- htmlspecialchars($fnamn, ENT_QUOTES, "UTF-8");
- mysql_real_escape_string($fnamn, $con);
- $read_query = "SELECT * FROM persons WHERE fnamn = '$fnamn'";
- $read_query_result = mysql_query($read_query, $con);
- //$read_data = mysql_fetch_assoc($read_query);
- $read_query_result;
- print $read_query_result;
- mysql_close($con);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment