Jump to content

[REZOLVAT] [Problema panel]


TwEnZyAdv
 Share

Recommended Posts

Intrebare: Salut, cine ma poate ajuta cu aceasta problema  Parse error: syntax error, unexpected '$a' (T_VARIABLE), expecting '(' in C:\xampp\htdocs\panel\inc\pages\application.p.php on line 

$q2 = Config::$g_con->prepare('INSERT INTO `emails` SET `PlayerID` = ?, `Message` =  ?, `EmailRead` = 1');
$q2->execute(array$a->userid,'Your application had been accepted by'.COnfig::GETdATA('users','name',$_SESSION['user']).' for faction '.Config::GetData('factions','name',$a->factionid).'.'));
    echo'<script> 
        swal("Good Job!", "You accepted the application!", "success");
        </script>';
   echo '<meta http-equiv="refresh" content="3;url=';echo Config::$_PAGE_URL;echo'">';
}


Ai încercat să faci ceva înainte să postezi?: Cod cursa, Multumesc

      

Link to comment
Share on other sites

Salut @TwEnzY.VALOARE.

Modelul unei inserari este urmatorul:

$message = "Your application was accepted.";
$q2 = Config::$g_con->prepare('INSERT INTO `emails` (`PlayerID`, `Message`) VALUES (?, ?)');
$q2->execute(array($a->userid, $message));

Zi buna!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...