[insert_php]
global $wpdb;
$randomquestion = mt_rand(40,50);
$username = “dibbsolu_wpbob”;
echo $randomquestion;
echo $stud_name;
// Create connection
$select_db = mysql_select_db(‘dibbsolu_wpbob’) or die (“cant get on it boy!”);
//—————–
$numrowss = “select count(*) from BOB_2017_MiddleQuestions”;
echo $numrowss;
//—————–
if ($select_db == true) {
echo “Connected successfully”;
}
echo “
“;
echo “Enter the AR level range: “;
$query = “SELECT * FROM BOB_2017_MiddleQuestions WHERE (1=1) ORDER BY iwb;”;
$fetch = mysql_query($query) or die (“couldnt get on user”);
echo “
Question | Page | Year |
---|---|---|
” .$row[‘iwb’].” | “. number_format($row[‘page’],0).” |
“. $row[‘year’].” |
“;
[/insert_php]