From 6fe7728a584010337b9e3fbbf30f2194ceb72eba Mon Sep 17 00:00:00 2001 From: HiddenMotives Date: Wed, 7 Sep 2016 08:38:47 -0600 Subject: [PATCH] Update Fix Fatal Error - fixes #31 Fix . Fatal error: Call to a member function bind_param() on a non-object in #31 --- php/setup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/setup.php b/php/setup.php index 14da120..57c810d 100644 --- a/php/setup.php +++ b/php/setup.php @@ -18,7 +18,7 @@ mysql_select_db($mysql_database) or die( "Unable to select database. Run setup first."); -$result = mysql_query('CREATE TABLE IF NOT EXISTS invoices (invoice_id INTEGER, price_in_usd DOUBLE, price_in_btc DOUBLE, product_url TEXT, PRIMARY KEY (invoice_id))'); +$result = mysql_query('CREATE TABLE IF NOT EXISTS invoices (invoice_id INTEGER, price_in_usd DOUBLE, price_in_btc DOUBLE, address TEXT, product_url TEXT, PRIMARY KEY (invoice_id))'); if (!$result) { die(__LINE__ . ' Invalid query: ' . mysql_error()); @@ -36,4 +36,4 @@ die(__LINE__ . ' Invalid query: ' . mysql_error()); } -?> \ No newline at end of file +?>