bonsoir,

j'écris actuellement, un livre d'or pour mon site perso avec un code assez simple
mais j'ai cette erreur que je comprends pas, malgrès mes recherches sur google:

Fatal error: Call to undefined function: () in /home//public_html/livredor/ajout.php on line 36

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<?

include "connexion.php";

$date = date("d/n/Y");

$nom = ereg_replace("[\]", " ", $nom);
$message=ereg_replace("[\]", " ", $message);
$mail=ereg_replace("[\]", " ", $mail);

$data="<br><NewMsg><DIV align=center>
  <TABLE bgColor=#CCCCCC border=1 borderColorDark=#000080 borderColorLight=#000080 
cellSpacing=0 width=650 bordercolor=#9999FF>
    <TBODY> 
    <TR>
    <TD width='100%'>
        <TABLE border=0 width='100%'>
          <tr> 
            <td colspan='2'>&nbsp;<TR> 
            <TD width='16%'><FONT color=#cc3300 face=Arial 
            size=2><B><font color='#FF9900'>$nom</font> </B></FONT></TD>
            <TD width='84%'><font color=#cc3300 face=Arial 
            size=2><b><a href='mailto:$mail'>$nom</a></b></font></TD>
          </TR>
<tr><td colspan='2'><font color=#cc3300 face=Arial size=2></font>
<TR> 
            <TD colSpan=4><font face='Arial' size='2' color=#FFFFFF>$message</font></TD>
          </TR>
          <tr> 
            <td colspan='2'> Post&eacute; le $date</TABLE></TD></TR></TBODY></TABLE>
</DIV><DIV align=center> </DIV><br>";

$requete="insert into message(nom, email, message, date) values('$nom', '$mail', '$data', '$date')";

connexion();
$mysql_query($requete);//ligne36
mysql_error();
mysql_close();

header("Location: livre.php");
?>