FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


error





moeslimoen
I have a error Sad

Parse error: syntax error, unexpected $end in /home/******/domains/moeslimoen.frih.net/public_html/******/opvragen.php on line 74

can anybody help my Crying or Very sad


Quote:
<?

require_once("includes/config.php");
require_once("includes/online.php");
require_once("includes/template.inc.php");
require_once("includes/functions.php");

$tpl = New TemplatePower("template/members.tpl");
$tpl->prepare();

if($_POST['submit'])
{

$opvraag_query = mysql_query("SELECT * FROM members WHERE email = '".$_POST['email']."'") or die(mysql_error());

if(empty($_POST['email']))
{

$error[Femail] = "<< Ongeldige invoer";

}

if(mysql_num_rows($opvraag_query) == 0)
{

$error[Femail] = "<< Ongeldige invoer";

}

if(!ereg("[A-Za-z0-9_-]+([\.]{1}[A-Za-z0-9_-]+)*@[A-Za-z0-9-]+([\.]{1}[A-Za-z0-9-]+)+", $_POST['email']))
{

$error[Femail] = "<< Ongeldige invoer";

}

if(count($error) > 0)
{
$tpl->newBlock("OPVRAAG");

$tpl->assign(Vemail, $_POST['email']);

foreach($error as $key => $content)
{

$tpl->assign($key, "<font color=\"#FF0000\">$content</font>");

}
}

else
{

$tpl->gotoBlock("_ROOT");
$tpl->NewBlock("STANDAARD");

$sleutel = id();

$update = mysql_query("UPDATE members SET wachtwoord = '" . md5($sleutel) . "' WHERE email = '" . $_POST['email'] . "'") or die(mysql_error());

while ($pw = mysql_fetch_assoc($opvraag_query))
{

$subject = "Login gegevens ".$config['sitenaam']."";

mail($_POST['email'], $subject, "Beste ">$pw['gebruikersnaam']."

Je heb je wachtwoord opgevraagd bij MetalDump.nl hieronder volgen je gegevens.

De gebruikersnaam is: ".$pw['gebruikersnaam']."
Het nieuw wachtwoord is: ".$sleutel."
Je kunt dit wachtwoord in je Profiel veranderen.

?>
Atomo64
maybe it should be this way:
Code:
<?

require_once("includes/config.php");
require_once("includes/online.php");
require_once("includes/template.inc.php");
require_once("includes/functions.php");

$tpl = New TemplatePower("template/members.tpl");
$tpl->prepare();

if($_POST['submit'])
{

   $opvraag_query = mysql_query("SELECT * FROM members WHERE email = '".$_POST['email']."'") or die(mysql_error());

   if(empty($_POST['email']))
   {

      $error[Femail] = "<< Ongeldige invoer";

   }

   if(mysql_num_rows($opvraag_query) == 0)
   {

      $error[Femail] = "<< Ongeldige invoer";

   }

   if(!ereg("[A-Za-z0-9_-]+([\.]{1}[A-Za-z0-9_-]+)*@[A-Za-z0-9-]+([\.]{1}[A-Za-z0-9-]+)+", $_POST['email']))
   {

      $error[Femail] = "<< Ongeldige invoer";

   }

   if(count($error) > 0)
   {
      $tpl->newBlock("OPVRAAG");

      $tpl->assign(Vemail, $_POST['email']);

      foreach($error as $key => $content)
      {

         $tpl->assign($key, "<font color=\"#FF0000\">$content</font>");

      }
   }

   else
   {

      $tpl->gotoBlock("_ROOT");
      $tpl->NewBlock("STANDAARD");

      $sleutel = id();

      $update = mysql_query("UPDATE members SET wachtwoord = '" . md5($sleutel) . "' WHERE email = '" . $_POST['email'] . "'") or die(mysql_error());

      while ($pw = mysql_fetch_assoc($opvraag_query))
      {

         $subject = "Login gegevens ".$config['sitenaam']."";

         mail($_POST['email'], $subject, "Beste ">$pw['gebruikersnaam']."

Je heb je wachtwoord opgevraagd bij MetalDump.nl hieronder volgen je gegevens.

De gebruikersnaam is: ".$pw['gebruikersnaam']."
Het nieuw wachtwoord is: ".$sleutel."
Je kunt dit wachtwoord in je Profiel veranderen. ");
      }
   }
}

?>


you were missing a "); }}}

also, you can get that kind of errors if you use short open tags (<? is short open tag and <?php is the correctly one) and PHP has the short_tags option disabled.
moeslimoen
can you change all my errors please Sad Embarassed

http://www.moeslimoen.frih.net/myMembers.zip

thank you very much Wink
Atomo64
post the files... it will be easier for me... just copy and paste
mathiaus
use http://frihost.pastebin.com dont just post straight into the post Shame on you (just forewarning)
Related topics
Help: SQL error after uploading new files(thread updated)
Error 404 ..... How to Hide ...
fantastico error
ERROR: Nameserver ns1.frihost.net is not authoritative
Custom error pages using .htaccess
error with cash mod
509 b/w error
got this error..
FTP Error
Email Error
error
FTP error codes -- What they mean
Forum error when posting
Error Posting...
Frihost Forum Error (30/08/2005)
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.