PHP interesse |
|
Beste mensen, ik heb een script gemaakt, waarmee spelers hun eigen foto's kunnen invoegen, en de informatie moet dus in de database terecht komen, maar nu heb ik dus een probleem hij geeft een fout weer, namelijk deze:
Parse error: syntax error, unexpected $end in /home/kk4857/domains/loyaltyrecords.nl/public_html/eng/upload.php on line 22
Het script ziet er als volgt uit:
<?
if(isset($_POST['submit'])){
$query = "INSERT INTO `uploads` (`username`,`path`) VALUES ('".$name."','".$pictureurl."')";
mysql_query($query) or die(mysql_error());
$name=htmlspecialchars($_POST['username']);
$pictureurl=htmlspecialchars($_POST['picture']);
?>
<center>
<form action="<?=$_SERVER['PHP_SELF']; ?>?page=signup<?=($_GET['lang'] ? "&lang=".$_GET['lang'] : ""); ?>" method="POST">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="title" colspan="2">Register</th>
<tr><td colspan="2" align="center">
<img src="http://www.loyaltyrecords.nl/images/crime.jpg">
</td></tr>
<tr><td>Username:</td><td><input type="text" class="text" name="username" maxlength="30"></td></tr>
<tr><td>Pictureurl:</td><td><input type="text" class="text" name="picture"></td></tr>
<tr><td colspan="2" align="center"><input type="submit" class="submit" value="Upload" name="submit"></td></tr>
<? if(isset($_POST['submit'])){ $query = "INSERT INTO `uploads` (`username`,`path`) VALUES ('".$name."','".$pictureurl."')"; ?> <center> <form action="<?=$_SERVER['PHP_SELF']; ?>?page=signup<?=($_GET['lang'] ? "&lang=".$_GET['lang'] : ""); ?>" method="POST"> <table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0> <th class="title" colspan="2">Register</th> <tr><td colspan="2" align="center"> <img src="http://www.loyaltyrecords.nl/images/crime.jpg"> </td></tr> <tr><td>Username:</td><td><input type="text" class="text" name="username" maxlength="30"></td></tr> <tr><td>Pictureurl:</td><td><input type="text" class="text" name="picture"></td></tr> <tr><td colspan="2" align="center"><input type="submit" class="submit" value="Upload" name="submit"></td></tr>
Wie kan helpen??
|