警告:mysql_num_rows()期望参数1是资源,布尔给定C:\ xampp \ htdocs \ ...在第84行[重复]

  <?php
       $orgid = "";
       if($result === false) { 
       var_dump(mysql_error()); 
       }
       $result = mysql_query("SELECT MAX(orgid) AS newID FROM organization");
       ?>

Here's the new error: Notice: Undefined variable: result in C:\xampp\htdocs....\organization.php on line 83

</div>

Your query has an error , add after $result

if($result === false) { var_dump(mysql_error()); }
$result = mysql_query("SELECT MAX(id) AS newID FROM organization");

Solve the error , and then query will run properly.