problema php

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
Razz0r.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 220
Joined: 24 Oct 2015, 21:01
Detinator Steam: Da
Reputatie: Utilizator neserios ( tepar )
Fond eXtream: 0

25 Mar 2016, 23:18

Salut.. am si eu eroarea asta la site-ul meu..

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/asd/public_html/asdd/includes/header.php on line 421


header.php

a href="complaints.php">
<?php

$unban = mysql_query('SELECT id from complaints WHERE status = 0 and factionid = 0');
$unbantotal = mysql_num_rows($unban); line 421
?>

stie cineva?
RoyalServer
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

25 Mar 2016, 23:37

| Afiseaza codul
<?php 

$unban = mysql_query('SELECT id from complaints WHERE status = 0 and factionid = 0');
$unbantotal = mysql_num_rows($unban);

?>
Last edited by Adventx on 26 Mar 2016, 22:54, edited 1 time in total.
User avatar
zigweed
Membru, skill +3
Membru, skill +3
Posts: 1094
Joined: 27 Oct 2015, 16:35
Detinator Steam: Da
SteamID: zshare
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fond eXtream: 0
Location: Bucuresti
Has thanked: 2 times
Been thanked: 13 times
Contact:

25 Mar 2016, 23:38

Selectul de mai sus iti returneaza 0 linii.
Vezi aici ce ai de facut: Link
Razz0r.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 220
Joined: 24 Oct 2015, 21:01
Detinator Steam: Da
Reputatie: Utilizator neserios ( tepar )
Fond eXtream: 0

25 Mar 2016, 23:45

Am rezolvat, mersi oricum pentru ajutor!

Era de la un tabel din baza de date nu era facut in sql un tabel
User avatar
blackgate
Membru, skill +4
Membru, skill +4
Posts: 1895
Joined: 15 Dec 2012, 13:50
Detinator Steam: Da
SteamID: melissus
Reputatie: retras
Been thanked: 240 times
Contact:

26 Mar 2016, 06:47

Adventx wrote:

Code: Select all

<?php 

$unban = mysql_query('SELECT id from complaints WHERE status = 0 and factionid = 0');
$unbantotal = mysql_num_rows($unban);

?>
si ce ai rezolvat tu aici ca nu vad nimic schimbat :gusta
User avatar
xdalynn
Membru, skill +1
Membru, skill +1
Posts: 405
Joined: 30 Nov 2013, 17:41
Detinator Steam: Nu
CS Status: Programare pe paine.
Contact:

26 Mar 2016, 12:32

Razz0r. wrote:Salut.. am si eu eroarea asta la site-ul meu..

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/asd/public_html/asdd/includes/header.php on line 421


header.php

a href="complaints.php">
<?php

$unban = mysql_query('SELECT id from complaints WHERE status = 0 and factionid = 0');
$unbantotal = mysql_num_rows($unban); line 421
?>

stie cineva?
Iti recomand sa folosesti mysqli!
Counter Strike 1.6 - Unelte pentru server http://www.extreamcs.com/forum/producti ... 99580.html
Programare Web si Software | Afiseaza codul
Fac platforme web la comanda si software (.net), pentru un pret, te rog sa ma contactezi.
Editez si imbunatatesc site-uri de asemenea.
Servicii servere jocuri | Afiseaza codul
Fac servere de Counter-Strike & Metin2 la cele mai mici preturi.
Contact | Afiseaza codul
Y!M: alinutu1234
Skype: xdalynn
Post Reply

Return to “Discutii generale”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 340 guests