Jump to content

mariusfrank

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by mariusfrank

  1. Hi everyone, how goes it? The website that i am building at the moment requires users to take tests to progress to the next section. The only problem is I DON'T EVEN KNOW IF YOU CONSTRUCT ONLINE TESTS IN PHP!!! Somebody please let me know if this is possible, and if not, does anyone know which language you could do this in?
  2. I am desperately trying to figure out what is wrong with this code i have written, but can't for the life of me work it out. Help please.. The problem is with line 11 - An error keeps popping up, saying: "Parse error, unexpected T_variable on line 11" and i cannot see it. Here is the code below: <?php function confirm_query($result_set){ if (!$result_set) { die("Database query failed: " . mysql_error()); } } function get_all_subjects() { $query = "SELECT * FROM first_table ORDER BY position ASC" $subject_set = mysql_query($query, $connection); confirm_query($subject_set); return $subject_set; } function get_pages_for_subject($subject_id) { $query1 = "SELECT * FROM tablepages WHERE subject_id = {$subjects_id} ORDER BY position ASC"; $page_set = mysql_query($query1, $connection); confirm_query($page_set); return $page_set; } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.