Gracias , una consulta ¿el codigo php que hace la consulta la DB y genera el array a través del while en que parte del archivo debe ir?, dentro del "<html>" o dentro de "<script>"?:
Código PHP:
Ver originalrequire("connect.inc.php");
$row = $fila['artista'];
}
Porque al incrustar esto:
<?php (echo o include) ?> me da un error el chorme:
Cita: Uncaught SyntaxError: Unexpected token <
a cambio muestra esto :
Código HTML:
Ver original<font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )
</span> Notice: Use of undefined constant datos - assumed 'datos' in C:\wamp\www\typeahead 0.10.2\index.php on line
<i>71
</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack
</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#
</th><th align='left' bgcolor='#eeeeec'>Time
</th><th align='left' bgcolor='#eeeeec'>Memory
</th><th align='left' bgcolor='#eeeeec'>Function
</th><th align='left' bgcolor='#eeeeec'>Location
</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1
</td><td bgcolor='#eeeeec' align='center'>0.0000
</td><td bgcolor='#eeeeec' align='right'>144600
</td><td bgcolor='#eeeeec'>{main}( )
</td><td title='C:\wamp\www\typeahead 0.10.2\index.php' bgcolor='#eeeeec'>..\index.php
<b>:
</b>0
</td></tr>