Is there a way to show a table(or submit button) only if $something is greater than $somethingelse in db.

    Sure. Do the query with the comparison, check to see if a result row was found, and if so output the data. (I realize this is a rather vague answer, but so was the question. 😉 )

      I agree-it is a vague question. Its too complicated to go thru it all
      I could just use it as an include i guess and run the query that way but whats the code to execute an include ?

        At a guess, or for example, you want users above a certain level to be able to edit stuff.

        $row = mysql_fetch_array($result);
        if ($row['level'] <= $row['threshold']) {
            include('includes/edit.inc');
        }
        
          Write a Reply...