Skip to content

Commit

Permalink
Added mysql_error code to error message when "Create Survey" failes.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@219 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 14, 2003
1 parent 9396557 commit 2757c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/database.php
Expand Up @@ -291,7 +291,8 @@
}
else
{
echo "<script type=\"text/javascript\">\n<!--\n alert(\"Your survey could not be created!\")\n //-->\n</script>\n";
$errormsg="Your survey could not be created - ".mysql_error();
echo "<script type=\"text/javascript\">\n<!--\n alert(\"$errormsg\")\n //-->\n</script>\n";
}
}
}
Expand Down

0 comments on commit 2757c18

Please sign in to comment.