Untitled - PHP 0.90 KB
                                
                                    <?php
	if ($_SERVER["REQUEST_METHOD"] == "POST") 
	{
		
		$host = "mysql.cba.pl";
		$db_user= "celestialempire";
		$db_password = "FXibvPD9h8w5pjn";
		$db_name="celestialempire";
			  	  
		$polaczenie = @new mysqli($host, $db_user, $db_password, $db_name);

		if($polaczenie->connect_errno!=0)
		{
			echo "Error: ". $polaczenie->connect_errno. "Opis: ". $polaczenie->connect_error;
		}
		else
		{
			$gameVersion = $_POST['gameVersion'];
			$steamId = $_POST['steamId'];
			$userName = $_POST['userName'];
			
			
			$sql = "INSERT INTO feedback SET gameVersion='$gameVersion', steamId='$steamId', userName='$userName'";
			
			if($rezultat = @$polaczenie->query($sql))
			{
				echo "Udało się";
			}
			else
			$polaczenie->close();
		}
	}
?>
                                
                            

Paste Hosted With By Wklejamy.pl