Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $dbhost = 'mysql2.000webhost.com';
- $dbuser = 'a1059070_Alexi';
- $dbpass = 'gggggggggg';
- $con=mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error Connection to MySQL');
- $dbname = 'a1059070_users';
- mysql_select_db($dbname);
- $id=$_SESSION['id'];
- if($id == null){ die("Error, did you login?"); }
- $query = "Select * FROM users WHERE ID = '$id'";
- $row=mysql_fetch_assoc(mysql_query($query)) or die ('Error with the query. Contact Alexi at alexi_hill14@live.com to report.');
- $item=$row['ID'];
- echo $id;
- echo $item;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement