je narive pas a creer une table avec cette requette pourqoi?
sa meecrit cette ereur la: ( ! ) Parse error: syntax error, unexpected T_STRING in C:\wamp\www\comerce_x\sql.php on line 24
<?php
try
{
//on se conecte a mysql
$bdd=new pdo('mysql:host=localhost;dbname=blog','root','');
}
catch(exception $e)
{
//on cas d'erreur,on affiche un message et on arrete tous
die ('Erreur:'.$e->getmessage());
}
CREATE TABLE 'an'(
'id' medium(8) unsigned NOT NULL auto_increment,
'code' vachar(20) NOT NUL default'',
'libel' vachar(200) NOT NUL default'',
'langue' char(2) NOT NUL default'fr',
'description' text NOT NUL,
'keywords' text NOT NUL,
primary key ('id'),
KEY 'libel' ('libel'),
KEY 'langue' ('langue'),
KEY 'code' ('code')
) ;
?>
</body>
</html>
Tutoriel complet MySQL !