Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Criando uma tabela com mysql, php e ajax (com jquery)


Você deve usar apenas $value em vez de {$value}. Você não precisa de outro loop foreach dentro do loop while.
$output_string = '';
$output_string .=  '<table border="1">';
while($row = mysql_fetch_assoc($facebook))
{
    $output_string .= '<tr>';
    $output_string .= '<td>'.$row['Your table column name here'].'</td>';
    $output_string .= '</tr>';
}
$output_string .= '</table>';