Skip to content

Commit

Permalink
Update Fix Fatal Error - fixes blockchain#31
Browse files Browse the repository at this point in the history
Fix . Fatal error: Call to a member function bind_param() on a non-object in blockchain#31
  • Loading branch information
HiddenMotives authored Sep 7, 2016
1 parent 903bec1 commit 6fe7728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

This comment has been minimized.

Copy link
@chloegonzales

chloegonzales Feb 21, 2018

Hhghhhh

Expand All @@ -36,4 +36,4 @@
die(__LINE__ . ' Invalid query: ' . mysql_error());
}

?>

This comment has been minimized.

Copy link
@chloegonzales

chloegonzales Feb 21, 2018

Jpay

?>

0 comments on commit 6fe7728

Please sign in to comment.