Sorry to confuse you, guys! Here is the entire code. It just doesn't work means that I couldn't find a mistake. The error message is the following:
Warning: Supplied argument is not a valid MySQL result resource in /home/davida/public_html/hiba_nez.php on line 17
So what's the problem? What is that supplement error? Is it a syntactic type of error?
Thanks a lot,
Akos, Hungary
<?
$dbhost = MYHOST ;
$dbuser = MYUSER ;
$db = mysql_connect($dbhost,$dbuser) or die("Hiba a kapcsolódáskor!") ;
$dbname = "gepek" ;
mysql_select_db($dbname,$db) ;
$query = "select sorszam,bejelento_email_cime,date_format(rogzites_ideje,'%Y-%m-%d %T') as date_time,leiras,leltari_szam,hibakod from hiba" ;
$result = mysql_query($query,$db) ;
while ($adat = mysql_fetch_array($result))
{ ?>
<tr><td><? echo $adat["sorszam"] ?></td>
<td><? echo $adat["bejelento_email_cime"] ?></td>
<td><? echo $adat["date_time"] ?></td>
<td><? echo $adat["leiras"] ?></td>
<td><? echo $adat["leltari_szam"] ?></td>
<td><? echo $adat["hibakod"] ?></td>
</tr>
<? } ?>
</table>