Thread Starter
djsap
(@djsap)
I seem to have forgotten the FROM in my query, but it still doesn’t work when I add it.
<?php
$threadtitle = the_title();
$threadid = $wpdb->get_var(SELECT id FROM wp_forum_threads WHERE subject = $threadtitle);
echo ‘$threadid’;
?>