Intereting Posts

Совершенно новый для PHP: Catchable fatal error: объект класса stdClass не может быть преобразован в строку

Я пытаюсь настроить свой сайт (продаю свой альбом для dogecoin), и я только что получил источник.

Я получаю эту ошибку:

Catchable fatal error: Object of class stdClass could not be converted to string in /home/ethjck/public_html/includes/classes/Purchase.php on line 59 

Соответствующая линия

 $query_new_tx_insert->bindValue(':dogecoin_address', $dogecoin_address, PDO::PARAM_STR); 

и является частью

 $query_new_tx_insert = $database->getDBConnection()->prepare('INSERT INTO transactions (txid, name, email, address, ip_address, datetime) VALUES(:txid, :user_name, :user_email, :dogecoin_address, :user_ip, now())'); $query_new_tx_insert->bindValue(':txid', $txid, PDO::PARAM_STR); $query_new_tx_insert->bindValue(':user_name', $user_name, PDO::PARAM_STR); $query_new_tx_insert->bindValue(':user_email', $user_email, PDO::PARAM_STR); $query_new_tx_insert->bindValue(':dogecoin_address', $dogecoin_address, PDO::PARAM_STR); $query_new_tx_insert->bindValue(':user_ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR); $query_new_tx_insert->execute(); 

Могу ли я получить помощь?