This question already has an answer here:
<?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.