Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //database settings
- $host = "you dont need this";
- $username = "davo";
- $password = "or this";
- $db = "or this";
- $db_table = "y4m";
- mysql_connect("$host", "$username", "$password") or die ("could not connect to the database");
- mysql_select_db("$db")or die("can't select database");
- $artist = mysql_real_escape_string($_POST['artist']);
- $album = mysql_real_escape_string($_POST['album']);
- $self = $_REQUEST['id'];
- $sql = "SELECT * FROM $db_table WHERE ID = '$self'";
- $result = mysql_query($sql);
- print_r($result);
- mysql_close();
- ?>
Add Comment
Please, Sign In to add comment