Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $insertQuery = "INSERT INTO `Some_Database`
- (`time`, `timestamp`, `price_btc`, `volume_btc`, `market`, `price_usd`, `difficulty`)
- VALUES (:current_time, :current_timestamp, :price_btc, :volume_btc, :doge_market, :price_usd, :difficulty)";
- $insertStmt = $database->prepare($insertQuery);
- $insertStmt->bindParam(":current_timestamp", $currenttimestamp);
- $insertStmt->bindParam(":price_btc", $priceBTC);
- $insertStmt->bindParam(":volume_btc", $volumeBTC);
- $insertStmt->bindParam(":price_usd", $priceUSD);
- $insertStmt->bindParam(":difficulty", $difficulty);
- $insertStmt->execute(Array(":current_time" => $currentTime, ":doge_market" => $dogeMarket)); // Note: this is line 101
- Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[HY093]:
- Invalid parameter number:
- number of bound variables does not match number of tokens in somepath/somefile.php on line 101
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement