Skip to content

Commit

Permalink
Added error handling routine for updatesurvey section (or die...)
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@286 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed May 16, 2003
1 parent 3580697 commit 42facf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/database.php
Expand Up @@ -312,7 +312,7 @@
$usquery .= " format='{$_POST['format']}', template='{$_POST['template']}', ";
$usquery .= " url='{$_POST['url']}', urldescrip='{$_POST['urldescrip']}'";
$usquery .= " WHERE sid={$_POST['sid']}";
$usresult = mysql_query($usquery);
$usresult = mysql_query($usquery) or die("Error updating<br />$usquery<br /><br /><b>".mysql_error());
if ($usresult)
{
//echo "<script type=\"text/javascript\">\n<!--\n alert(\"Your Survey ($short_title) has been updated!\")\n //-->\n</script>\n";
Expand Down

0 comments on commit 42facf5

Please sign in to comment.