a basic php recordset will look like:
mysql_select_db($database_test, $test);
$query_Recordset1 = "SELECT * FROM orders";
$Recordset1 = mysql_query($query_Recordset1, $test) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
in this example, the line that executes the query is:
$Recordset1 = mysql_query($query_Recordset1, $test) or die(mysql_error());
the mysql_query() function takes 2 arguments. The first argument is the SQL, the second is the connection. So looking at that code, the variabel that passes the SQL is $query_Recordset1. I can use the following code to write the SQL to the page:
<?php echo($query_Recordset1); ?>