Vocaburary

คำศัพท์ภาษาอังกฤษที่ควรรู้

[insert_php] wp_enqueue_style( ‘style’, ‘//cdn.datatables.net/1.10.16/css/jquery.dataTables.css’ );
wp_enqueue_script( ‘script’, ‘//cdn.datatables.net/1.10.16/js/jquery.dataTables.js’ );
wp_enqueue_script( ‘script2’, get_template_directory_uri() . ‘/js/vocab.js’ );
[/insert_php]
[insert_php] global $wpdb;
$result = $wpdb->get_results(‘SELECT ev.id, ev.name, evm.meaning FROM eng_vocaburary AS ev LEFT JOIN eng_vocaburary_meaning AS evm ON ev.id = evm.vocaburary_id ORDER BY ev.name’);
foreach($result as $row) {
echo ‘

‘;
echo ‘

‘;
}
[/insert_php]

ID คำศัพท์ คำแปล
‘ . $row->id . ‘ ‘ . $row->name . ‘ ‘ . $row->meaning;
echo ‘

Leave a Reply

Thumbnails managed by ThumbPress