From cfb751bda70ef2cfbebab999d5185add62ffbac3 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 28 Aug 2009 11:32:35 +0000 Subject: [PATCH] Make it work. --- ykval-getapikey.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ykval-getapikey.php b/ykval-getapikey.php index 9dd05a8..b46b8f5 100644 --- a/ykval-getapikey.php +++ b/ykval-getapikey.php @@ -40,7 +40,8 @@ fclose ($fh); $b64rnd = base64_encode ($rnd); $query = "SELECT MAX(id) FROM clients"; -if (!mysql_query($query, $conn)) { +$result = mysql_query($query, $conn); +if (!$result) { debug("SQL query error: " . mysql_error()); logdie("code=maxiderror"); }