ok i have 1 doc with a php file quiz1.php taking in a variable $quizname through a textfield like so:
<form method="post" action="<?php echo $PHP_SELF?>">
<p><br>
<center><b>Quiz name:</b><br>
<center><input type="Text" name="quizname" size="50">
<br><br>
<center><input type="Submit" name="take" value="Take Quiz" onClick="window.open('quiz2.php','QuizList','width=1000,height=650,left=0')">
</p>
</form>
and another php doc (quiz2.php) that contains the code to display the SQL data in a table format, referencing $quizname from quiz1.php
$display = mysql_query("SELECT * FROM $quizname ORDER BY id",$db);
and i get the error
Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\final\quiz2.php on line 392
and line 392 is
while ($row = mysql_fetch_array($display))