Parse error: syntax error, unexpected $end in /home/jvmaan/domains/satie/editl1.
Ik zie hem egt niet:(
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<? include ('config.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Your page management... (UD)</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<center>
<div id="container">
<div id="top"></div>
<div id="nav"><table cellpadding="0" cellspacing="0"><tr><td>
<div id="a">
<? include ('1.php'); ?>
</div></td>
<td><div id="b">
<? include ('2.php'); ?> </div></td>
<td><div id="c">
<? include ('3.php'); ?> </div></td></tr></table>
</div>
<div id="bar"></div>
<div id="body">
<?
if($_POST['voeglink'])
{
if(isset($_POST['naamlink'])) { if(isset($_POST['product'])) { if(isset($_POST['hidden'])) { if(isset($_POST['hoeveelste']))
{
$query = "UPDATE `links` SET `plaats` = '".$_POST['hoeveelste']."', `categorie` = '".$_POST['categorie']."', `pagina` = '".$_POST['product']."', `linknaam` = '".$_POST['naamlink']."' WHERE id` = '".$_POST['hidden']."'";
$sql = mysql_query($query) or die(mysql_error());
echo'Link Updated';
}
else
{
echo"Sorry There are empty fields";
}
}
}
}
}
else
{
$query1 = "SELECT * FROM links WHERE id = '".$_GET['edit']."'";
$sql1 = mysql_query($query1)or die(mysql_error());
$select = "SELECT * FROM paginas ORDER by id DESC";
$resultaat = mysql_query($select);
while($record1 = mysql_fetch_object($sql1) AND $record2 = mysql_fetch_object($resultaat))
{
echo '<form method=post>';
echo 'Linknaam:<br>';
echo '<input name="naamlink" size=50 value="'.$record1->linknaam.'" </font></p><br /></br>';
echo 'Naar welke pagina:<br>';
echo '<select name="product">';
$query2 = "SELECT * FROM paginas";
$result2 = mysql_query($query2) or trigger_error(mysql_error());
while($row2 = mysql_fetch_assoc($result2)){
echo '<option value="'.$row2['id'].'" >'.$row2['paginanaam'].'</option>';
}
echo '</select><br>';
echo'
In wich categorie:<br>';
$query23 = "SELECT * FROM `categorien`";
$sql23 = mysql_query($query23);
echo'<select name="categorie">';
while($record3 = mysql_fetch_object($sql23))
{
echo'<option value="'.$record3->id.'">'.$record3->naam.'</option>';
}
echo '</select>';
?>
<br><br>
echo 'Hoeveelste plaats:<br>';
echo '<br>';
echo'<input name="hoeveelste" size=50 value="'.$record1->plaats.'" ></font></p><br />';
echo '</select>';
echo '<font face="Verdana" size="1">';
echo '<input type="hidden" name="hidden" size=50 value="'.$record1->s.'" s >';
echo '<input type="submit" Value="Update" name="voeglink" float: right; font-family:Verdana; font-size:8 pt"></font></p>';
echo '</form>';
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Your page management... (UD)</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<center>
<div id="container">
<div id="top"></div>
<div id="nav"><table cellpadding="0" cellspacing="0"><tr><td>
<div id="a">
<? include ('1.php'); ?>
</div></td>
<td><div id="b">
<? include ('2.php'); ?> </div></td>
<td><div id="c">
<? include ('3.php'); ?> </div></td></tr></table>
</div>
<div id="bar"></div>
<div id="body">
<?
if($_POST['voeglink'])
{
if(isset($_POST['naamlink'])) { if(isset($_POST['product'])) { if(isset($_POST['hidden'])) { if(isset($_POST['hoeveelste']))
{
$query = "UPDATE `links` SET `plaats` = '".$_POST['hoeveelste']."', `categorie` = '".$_POST['categorie']."', `pagina` = '".$_POST['product']."', `linknaam` = '".$_POST['naamlink']."' WHERE id` = '".$_POST['hidden']."'";
$sql = mysql_query($query) or die(mysql_error());
echo'Link Updated';
}
else
{
echo"Sorry There are empty fields";
}
}
}
}
}
else
{
$query1 = "SELECT * FROM links WHERE id = '".$_GET['edit']."'";
$sql1 = mysql_query($query1)or die(mysql_error());
$select = "SELECT * FROM paginas ORDER by id DESC";
$resultaat = mysql_query($select);
while($record1 = mysql_fetch_object($sql1) AND $record2 = mysql_fetch_object($resultaat))
{
echo '<form method=post>';
echo 'Linknaam:<br>';
echo '<input name="naamlink" size=50 value="'.$record1->linknaam.'" </font></p><br /></br>';
echo 'Naar welke pagina:<br>';
echo '<select name="product">';
$query2 = "SELECT * FROM paginas";
$result2 = mysql_query($query2) or trigger_error(mysql_error());
while($row2 = mysql_fetch_assoc($result2)){
echo '<option value="'.$row2['id'].'" >'.$row2['paginanaam'].'</option>';
}
echo '</select><br>';
echo'
In wich categorie:<br>';
$query23 = "SELECT * FROM `categorien`";
$sql23 = mysql_query($query23);
echo'<select name="categorie">';
while($record3 = mysql_fetch_object($sql23))
{
echo'<option value="'.$record3->id.'">'.$record3->naam.'</option>';
}
echo '</select>';
?>
<br><br>
echo 'Hoeveelste plaats:<br>';
echo '<br>';
echo'<input name="hoeveelste" size=50 value="'.$record1->plaats.'" ></font></p><br />';
echo '</select>';
echo '<font face="Verdana" size="1">';
echo '<input type="hidden" name="hidden" size=50 value="'.$record1->s.'" s >';
echo '<input type="submit" Value="Update" name="voeglink" float: right; font-family:Verdana; font-size:8 pt"></font></p>';
echo '</form>';
}
}
?>
</div>
<div id="bottom"><table cellpadding="0" cellspacing="0"><tr><td>
<a href="terms.php">Terms & Cond.</a></td><td class="help">
<a href="help.php"><span class="word">Help</span></a></td>
</tr></table></div>
</div>
</center>
</body>
</html>
Je sluit PHP op lijn 74 maar je opent hem nergens meer