Thanks for the replies cordulack.
I’ve tried using the post meta code, but the results do not match what I expected, because of something or another I can not use the post meta code.
I have tried using the code:
in the “themes\twentyeleven\content.php”
<?php
$youtube = $wpdb->get_results( "SELECT id, name FROM youtube" );
echo "see how it works: "; print_r($youtube);
?>
the result was: see how it works: Array ( )
when i tried using Function Reference using code :
in the “wp-includes\post-template.php”
function youtube_address() {
global $wpdb;
$youtube = $wpdb->get_results( "SELECT * FROM youtube");
print $youtube;
}
and call it using:
see how it works: <?php youtube_address(); ?>
the result was: see how it works: Array
Please cordulack or someone show me whats wrong with my code
this project for my school work.
Thankyou