Hello,
If I understand what you're asking, you want to dynamically create an SQL query, right?
If so, simply create a string to hold the SQL query that you build up, and then pass that string into your SQL function.
...AND $row['signedup'] == "$allowedtime >= $time"
Something along these lines should work:
$query = ".....AND $row['signedup'] == \"$allowedtime >= \"$time";
$resultID = mysql_query($query,$connID);
Remember to escape the double quotes you want to include in the text of your query, or use the "." operator to concat different sections of your query together.
Hopefully my response is helpful. 🙂
shelby