wer kann mir helfen was ist an dem code falsch!!
<?php
include ("daten.php4");
$burl = "SELECT * FROM mt_popups WHERE guthaben > 0 AND frei = '1' ORDER BY RAND() LIMIT 1";
$ergebnis = mysql_query($burl);
while($row = mysql_fetch_object($ergebnis))
{
$popupid = $row->id;
$purl = $row->url;
?>
<body onLoad='Fenster1()'>
<script language="JavaScript">
<!--
function Fenster1()
{
var breite=750;
var hoehe=500;
var positionX=((screen.availWidth / 2) - breite / 2);
var positionY=((screen.availHeight / 2) - hoehe / 2);
var url='<?php echo $purl ?>';
pop=window.open('','xkt111','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resi zable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000');
pop.blur();
pop.resizeTo(breite,hoehe);
pop.moveTo(positionX,positionY);
pop.location=url;
}
onerror = stopError;
function stopError()
{return true;}
//-->
</script>
<?
$buchung = "SELECT views FROM mt_popups WHERE id = '$popupid'";
$ergebnis = mysql_query($buchung)or die(mysql_error());
while($row = mysql_fetch_object($ergebnis))
$buchung = $row->views + 1;
$aendern = "UPDATE mt_popups Set views = '$buchung' WHERE id = '$popupid'";
$update = mysql_query($aendern);
$buchung1 = "SELECT guthaben FROM mt_popups WHERE id = '$popupid'";
$ergebnis = mysql_query($buchung1);
while($row = mysql_fetch_object($ergebnis))
$buchung1 = $row->guthaben - 1;
$aendern1 = "UPDATE mt_popups Set guthaben = '$buchung1' WHERE id = '$popupid'";
$update = mysql_query($aendern1);
#######################################################
# Copyright by ohphp.de 2003 info@ohphp.de #
# #
#######################################################
include("./config/config.php");
$resultc = mysql_query("SELECT * FROM `mt_texte`");
$rowc = mysql_fetch_row($resultc);
$start = $rowc[1];
include("header.php"); ?>
<? echo "$start"; ?><br><br>
<TABLE bgcolor="#FFFFFF" bordercolor="#000000" border="1" width="60%" align="center" cellpadding="0" cellspacing="0" colspan="1" rowspan="1">
<TR>
<TD>
<? $result = mysql_query("SELECT * FROM `mt_userlink` WHERE views>0 ORDER BY lastview ASC LIMIT 5");
while ($myrow = mysql_fetch_row($result)){
$angezeigt = $myrow[7] - $myrow[5];
$query="UPDATE mt_userlink SET views=views-1, lastview='".time()."' WHERE id='$myrow[0]';";
mysql_query($query);
echo"
<a href=./links_klick.php?id=$myrow[0] target=_blank><font face=Verdana, Arial, Helvetica, sans-serif size=1 color=#3B5494><b>$myrow[2]</b></a></font><font face=Verdana, Arial, Helvetica, sans-serif size=1 color=#3B5494> ($angezeigt Views, $myrow[6] Klicks)<br>
$myrow[3]</font><br>";
};
?></TD></TR>
</table>
<br><br><br>
<? } include("footer.php"); ?>
würd mich auf hilfe freuen bekomme fehler meldung
Parse error: parse error in index.php on line 7
liebe grüße
<?php
include ("daten.php4");
$burl = "SELECT * FROM mt_popups WHERE guthaben > 0 AND frei = '1' ORDER BY RAND() LIMIT 1";
$ergebnis = mysql_query($burl);
while($row = mysql_fetch_object($ergebnis))
{
$popupid = $row->id;
$purl = $row->url;
?>
<body onLoad='Fenster1()'>
<script language="JavaScript">
<!--
function Fenster1()
{
var breite=750;
var hoehe=500;
var positionX=((screen.availWidth / 2) - breite / 2);
var positionY=((screen.availHeight / 2) - hoehe / 2);
var url='<?php echo $purl ?>';
pop=window.open('','xkt111','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resi zable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000');
pop.blur();
pop.resizeTo(breite,hoehe);
pop.moveTo(positionX,positionY);
pop.location=url;
}
onerror = stopError;
function stopError()
{return true;}
//-->
</script>
<?
$buchung = "SELECT views FROM mt_popups WHERE id = '$popupid'";
$ergebnis = mysql_query($buchung)or die(mysql_error());
while($row = mysql_fetch_object($ergebnis))
$buchung = $row->views + 1;
$aendern = "UPDATE mt_popups Set views = '$buchung' WHERE id = '$popupid'";
$update = mysql_query($aendern);
$buchung1 = "SELECT guthaben FROM mt_popups WHERE id = '$popupid'";
$ergebnis = mysql_query($buchung1);
while($row = mysql_fetch_object($ergebnis))
$buchung1 = $row->guthaben - 1;
$aendern1 = "UPDATE mt_popups Set guthaben = '$buchung1' WHERE id = '$popupid'";
$update = mysql_query($aendern1);
#######################################################
# Copyright by ohphp.de 2003 info@ohphp.de #
# #
#######################################################
include("./config/config.php");
$resultc = mysql_query("SELECT * FROM `mt_texte`");
$rowc = mysql_fetch_row($resultc);
$start = $rowc[1];
include("header.php"); ?>
<? echo "$start"; ?><br><br>
<TABLE bgcolor="#FFFFFF" bordercolor="#000000" border="1" width="60%" align="center" cellpadding="0" cellspacing="0" colspan="1" rowspan="1">
<TR>
<TD>
<? $result = mysql_query("SELECT * FROM `mt_userlink` WHERE views>0 ORDER BY lastview ASC LIMIT 5");
while ($myrow = mysql_fetch_row($result)){
$angezeigt = $myrow[7] - $myrow[5];
$query="UPDATE mt_userlink SET views=views-1, lastview='".time()."' WHERE id='$myrow[0]';";
mysql_query($query);
echo"
<a href=./links_klick.php?id=$myrow[0] target=_blank><font face=Verdana, Arial, Helvetica, sans-serif size=1 color=#3B5494><b>$myrow[2]</b></a></font><font face=Verdana, Arial, Helvetica, sans-serif size=1 color=#3B5494> ($angezeigt Views, $myrow[6] Klicks)<br>
$myrow[3]</font><br>";
};
?></TD></TR>
</table>
<br><br><br>
<? } include("footer.php"); ?>
würd mich auf hilfe freuen bekomme fehler meldung
Parse error: parse error in index.php on line 7
liebe grüße
Kommentar