I had this error: Parse error: syntax error, unexpected T_STRING in C:\Program Files\WampServer\www\atestat\admin_add.php on line 14
I can't figure out what's the mistake, so I posted here. I use PHP version 5.3.5.
Here is admin_add.php file:
<?php
include('config.php');
$categorie = $_REQUEST['categorie'];
$titlu = $_REQUEST['titlu'];
$autor = $_REQUEST['autor'];
$descriere = $_REQUEST['descriere'];
$context = $_REQUEST['context'];
if(empty($categorie) || empty($titlu) || empty($autor) || empty($descriere) || empty($context))
{
die("Completati toate casutele !<br><a href='/atestat/admin/index.html'>Inapoi</a>");
}
$inserare = mysql_query("INSERT INTO '".$categorie."' (id, titlu, data, descriere, context, autor) VALUES ('"NULL"', '".$titlu."' , CURDATE( ) , '".$descriere."' , '".$context."', '".$autor."')");
?>