Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 45 Pomógł: 0 Dołączył: 2.06.2012 Skąd: Jarocin Ostrzeżenie: (0%)
|
Witam,
Mam problem ze skryptem aktywacji konta po przez email. Gdy podaje wartości czyli /activate.php?id=3&code=c6654769c83cda14c84270307a2e245d wyskakuje mi błąd: SCREAM: Error suppression ignored for ( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\activate.php on line 12 ZĹy ID lub Kod Aktywacyjny. Oto plik activate.php
Proszę o pomoc z góry dziękuję. |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 728 Pomógł: 76 Dołączył: 12.06.2009 Ostrzeżenie: (0%)
|
Cytat z manula do wartości zwracanych z mysql_query:
Return Values For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error. For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error. The returned result resource should be passed to mysql_fetch_array(), and other functions for dealing with result tables, to access the returned data. Use mysql_num_rows() to find out how many rows were returned for a SELECT statement or mysql_affected_rows() to find out how many rows were affected by a DELETE, INSERT, REPLACE, or UPDATE statement. mysql_query() will also fail and return FALSE if the user does not have permission to access the table(s) referenced by the query. |
|
|
|
Marecki669 ERROR mysql_num_rows POMOCY! 2.06.2012, 14:37:45
radziopoke a czy przypadkiem funkcja mysql_query nie ma dwóch... 2.06.2012, 18:03:08
Marecki669 Dziękuję bardzo radziopoke pomogło. Dziękuję 2.06.2012, 18:29:30 ![]() ![]() |
|
Aktualny czas: 28.12.2025 - 04:47 |