Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP] Unknown column 'sc_order_email' in 'field list' Problem
ragen
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 19.07.2011

Ostrzeżenie: (0%)
-----


Witam. Chodzi o bład:
  1. Unknown column 'sc_order_email' in 'field list'
Dopiero sie uczę więc nie bardzo wiem co mam zrobic. Jedyne co rozumiem to ze komunikat zwraca mi że nie ma kolumny 'sc_order_email'. Dołacze część pliku common.php gdzie znajduje sie $sc_order_email:
  1. function getShopConfig()
  2. {
  3. // konfiguracja
  4. $sql = "SELECT sc_name, sc_address, sc_phone, sc_email, sc_shipping_cost, sc_order_email, cy_symbol
  5. FROM tbl_shop_config sc, tbl_currency cy
  6. WHERE sc_currency = cy_id";
  7. $result = dbQuery($sql);
  8. $row = dbFetchAssoc($result);
  9.  
  10. if ($row) {
  11. extract($row);
  12.  
  13. $shopConfig = array('name' => $sc_name,
  14. 'address' => $sc_address,
  15. 'phone' => $sc_phone,
  16. 'email' => $sc_email,
  17. 'sendOrderEmail' => $sc_order_email,
  18. 'shippingCost' => $sc_shipping_cost,
  19. 'currency' => $cy_symbol);
  20. } else {
  21. $shopConfig = array('name' => '',
  22. 'address' => '',
  23. 'phone' => '',
  24. 'email' => '',
  25. 'sendOrderEmail' => $sc_order_email,
  26. 'shippingCost' => '',
  27. 'currency' => '');
  28. }
  29.  
  30. return $shopConfig;
  31. }

Co mam zrobić żeby nie wyskakiwal mi ten komunikat? Pozdrawiam i z góry dziękuje za udzieloną mi pomoc.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 09:43