Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z wykonaniem zapytania do bazy, mysqli_result could not be converted to string
deha21
post
Post #1





Grupa: Zarejestrowani
Postów: 544
Pomógł: 5
Dołączył: 18.08.2009

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


Dostaję, wydaje mi się, dziwny błąd próbując zrobić insert do bazy. Dostaję komunikat: mysqli_result could not be converted to string z tym, że wydaje mi się że wcale tego nie robię... Już mi się w oczach mieni od kodu. Czy gdzieś tutaj widzicie błąd?
  1. $r = mysqli_query($mysqli, "INSERT INTO table VALUES ('', '".$order_id."', '".$receiver."', '".$user."', '".$rate."', '".$review."', '".$date."') ");
  2.  
  3. if ($r) {
  4. echo '<p class="message positive">Your review has been added.</p>';
  5. } else {
  6. echo '<p class="message negative">Something was wrong. Your review has not been added.</p>';
  7. }
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.08.2025 - 07:57