T-sneak
Mitglied
Könnt ihr mir sagen was ich hier falsch mache?
self und gegnerpu sind beides spalten in war drinne
als fehler bekomme ich
Warning: mysql_query(): A link to the server could not be established in /usr/export/www/vhosts/funnetwork/hosting/tsneak/match.php on line 43
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/export/www/vhosts/funnetwork/hosting/tsneak/match.php on line 44
Wars
self und gegnerpu sind beides spalten in war drinne
als fehler bekomme ich
Warning: mysql_query(): A link to the server could not be established in /usr/export/www/vhosts/funnetwork/hosting/tsneak/match.php on line 43
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/export/www/vhosts/funnetwork/hosting/tsneak/match.php on line 44
Wars
PHP:
<table width="886" border="0">
<tr>
<td width="67"><?php
$result = mysql_query("SELECT * FROM war'");
$menge = mysql_num_rows($result);
echo "$menge Wars";
?> </td>
<td width="86"><?php
$result2 = mysql_query("SELECT * FROM war where `self` > `gegnerpu`'");
$menge2 = mysql_num_rows($result2);
echo "$menge2 Wins";
?> </td>
<td width="85"><?php
$result3 = mysql_query("SELECT * FROM war where `self` == `gegnerpu`'");
$menge3 = mysql_num_rows($result3);
echo "$menge3 Draws";
?> </td>
<td width="630"><?php
$result4 = mysql_query("SELECT * FROM war where `self` < `gegnerpu`'");
$menge4 = mysql_num_rows($result4);
echo "$menge4 Lose";
?> </td>
</tr>
</table>