

Edit Pro Shop Information
Edit Pro Shop Info.
require_once ('mysql_connect.php'); // Connect to the database. //checks cookies to make sure they are logged in if(isset($_COOKIE['ID_my_site'])) { $username = $_COOKIE['ID_my_site']; $pass = $_COOKIE['Key_my_site']; $query = "SELECT * FROM login WHERE username = '$username'"; $check = mysql_query($query) or die(mysql_error()); while($info = mysql_fetch_array( $check )) { //if the cookie has the wrong password, they are taken to the login page if ($pass != $info['password']) { header("Location: login.php"); } else { //otherwise they are shown the admin area $query="SELECT * FROM proshops"; $result = mysql_query ($query); while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) { echo "
"; } } } } ?>