<?php include("configs.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><META http-equiv="Content-Type" content="text/html/php; charset=utf-8">
<META name="description" content="ScanServers er et hosting firma som hoster game servers til lave priser!">
<META name="keywords" content="servers, cs server, gameserver, ventrilo server, ventrilo, server, cz servers, cz server, gameservers, game server, game servers">
<TITLE>Team-Reloaded :: Donate</TITLE>
<LINK href="./index_files/styles.css" rel="stylesheet" type="text/css">
<LINK rel="shortcut icon" href="favicon.ico">
<SCRIPT type="text/javascript" src="./index_files/jquery.js"></SCRIPT>
<SCRIPT src="index_files/power.js"></SCRIPT><LINK type="text/css" href="index_files/power.css" rel="stylesheet">
<SCRIPT language="javascript" type="text/javascript">
$(document).ready(function(){
$(".hidediv").click(function(){
$("#floatie").hide("slow");
});
$(".comlinks a").hover(function() {
$(this).next("em").animate({opacity: "show", left: "200", top: "5"}, "fast");
}, function() {
$(this).next("em").animate({opacity: "hide", left: "220", top: "5"}, "slow");
});
$(".closeintro").click(function(){
$("#intro").slideUp("slow");
$("#gone").slideUp("slow");
});
});
</SCRIPT>
<style type="text/css">
<!--
.style2 {color: #cccccc}
body {
background-image: url(images/bg-main.jpg);
}
-->
</style>
</HEAD><BODY>
<DIV id="wrapper">
<DIV id="header">
<SPAN class="hide-text">Team-Reloaded</SPAN><img src="images/header.jpg" /></DIV>
<UL id="menu">
<LI><A href="home.php">Home</A></LI>
<LI><A href="./forums/">Forums</A></LI>
<LI><A href="team.php">The Team</A></LI>
<LI><A href="donate.php">Donation</A></LI>
<LI><A href="register.php">Register</A></LI>
</UL>
<div id="sidebar">
<div class="comlinks"> <a href="./forums/"><img src="index_files/side-forums.jpg" alt="Forums!" /></a><em>This is the place were you will the able to post bug reports, or just hang out.</em></div>
<div class="comlinks"><a href="produkter.php"><img src="index_files/side-beta.jpg" alt="Dpnation!" style="margin-bottom: 20px;" /></a><em>This is the place were you will be able to donate for our server. Donates keep server runing and might at some ways do it better!</em></div>
<h3 style="margin-bottom: 10px;">Ventrilo</h3>
<div id="comlinks">
<div><a href="http://www.ventrilo.com">Download Ventrilo</a><br />
IP: <?php echo $ventriloip; ?><br />
Port: <?php echo $ventriloport; ?><br /><br />
</div>
</div>
</div>
<DIV id="content1">
<H3><A href="">Donate</A></H3>
<DIV class="post_a"></DIV><DIV class="post">
<DIV class="post_d"></a></DIV>
<table>
<tr>
<td>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("website", $con);
$item=$_POST['item'];
$email=$_POST['email'];
$char=$_POST['char'];
$account=$_POST['account'];
$more=$_POST['more'];
$owner=$_POST['owner'];
$ip=$_SERVER['REMOTE_ADDR'];
$alt="Send the money by pressing here!";
$betal="Send the money by pressing here!";
$knap="
<form action=https://www.paypal.com/cgi-bin/webscr method=post>
<input type=hidden name=cmd value=_xclick>
<input type=hidden name=business value=scanservers@live.dk>
<input type=hidden name=item_name value=Team-Reloaded_Donation>
<input type=hidden name=currency_code value=US>
<input type=hidden name=amount value=". $item . ">
<input type=image src=index_files/pay.jpg name=submit alt=$alt value=$betal>
</form>
";
$sqlquery = "INSERT INTO donations (owner, account, price, item, more, char, ip, email)
VALUES ('$owner', '$account', '$item', '$more', '$char', '$ip', '$email')";
mysql_query($sqlquery) or die(mysql_error());
echo 'The form is now enterd into the database! You may now press on the button under this text, and transfer the money over to the server paypal.';
echo "<br />Thx for the donation!<br />";
echo "Price: <select name=pris>
<option value=" . $item . ">" . $item . "</option>
</select>";
echo "$knap";
mysql_close($con);
?>
</td>
</tr>
</table>
</DIV>
</DIV>
</DIV>
</BODY></HTML>
Gir error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char, ip, email) VALUES ('jon birch hansen', 'dixo1', '40', 'nope ', 'silver',' at line 1
Kan bare ikke forstå hvordan jeg får det fixed :-/