I have created a table with an AUTO INCREMENT
column (Id, primary key), and have done the following php code:
$med="MED0x";
$sql=" INSERT INTO Inscricoes2 (`Nome`,`Nome Clinico`, `Numero Cedula`, `Email`, `Descricao`) VALUES ('$nome_completo', '$nome_clinico', '$numero_cedula', '$email' , '$comentario') " ;
$num=mysql_insert_id($con);
$resultado=$med . $num;
echo "$resultado";
But it doesnt echo anything, and an error appears. What is wrong here?