I wrote a code to insert data from a web page. Not a formula. But an error occured. this is the code:
<?php
// Connecxion a la base
$base = mysql_connect('imysql03', 'i4143424', '5h173e2mu5nkooqp');
mysql_select_db('i4143424', $base);
?>
<html>
<head>
<title>Insertion dans la base</title>
</head>
<body>
<?php
// lancement de la requete
$sql = "INSERT INTO inscription_newsletter VALUES('', 'MAX', 'BOSSADI', 'max_bossadi@yahoo.fr')";
mysql_query($sql) or die ('Erreur SQL!'.$sql.'<br>'.mysql_error());
mysql_close();
?>
Max vient d'etre insere dans la base.
</body>
</html>
please hel me to know where is the mistake.
The eror reurned is this:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
<?php
// Connecxion a la base
$base = mysql_connect('imysql03', 'i4143424', '5h173e2mu5nkooqp');
mysql_select_db('i4143424', $base);
?>
<html>
<head>
<title>Insertion dans la base</title>
</head>
<body>
<?php
// lancement de la requete
$sql = "INSERT INTO inscription_newsletter VALUES('', 'MAX', 'BOSSADI', 'max_bossadi@yahoo.fr')";
mysql_query($sql) or die ('Erreur SQL!'.$sql.'<br>'.mysql_error());
mysql_close();
?>
Max vient d'etre insere dans la base.
</body>
</html>
please hel me to know where is the mistake.
The eror reurned is this:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
