Hello, (I'm french so excuse me for my english)
I've a problem with the typeahead, when I connect it with my sql db,
it displays just one letter of the item and not the complete word...
Could you help me ?
This is the code for the Typeahead :
<?php
mysql_connect('localhost', 'root', 'root');
mysql_select_db($societe);
$reponse = mysql_query("SELECT sous_surveillance_volontaire FROM
essv");
echo "<input class='typeahead' name='essv1' type='text' data-
provide='typeahead' data-items='4' data-source='[";
while ($donnees_g = mysql_fetch_array($reponse) ) { ?>"<?php
echo $donnees_g['sous_surveillance_volontaire'] ;
?>
"<?php echo $donnees_g['sous_surveillance_volontaire'] ; ?>"
<?php
} echo " ]'>" ;
?>