vimake
)))))
<?php
$myrow2['id'] == $idcolvo;
$colvo1 = mysql_query("SELECT COUNT (*) FROM `tetris` WHERE `hoid`='$idcolvo'");
$colvo = mysql_fetch_assoc($colvo1);
?>
<div class="allkey"><?php echo htmlspecialchars($myrow['allkey']); ?><?php echo htmlspecialchars($colvo['result']); ?>
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in O:\home\test1.ru\www\index.php on line 154
$myrow2['id'] == $idcolvo;
$colvo1 = mysql_query("SELECT COUNT (*) AS counter FROM `tetris` WHERE `hoid`='$idcolvo'");
$colvo = mysql_fetch_assoc($colvo1);
echo $colvo['counter'];
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in O:\home\test1.ru\www\index.php on line 154
$colvo1 = mysql_query("SELECT COUNT (*) AS counter FROM `tetris` WHERE `hoid`='$myrow2['id']'");
$colvo = mysql_fetch_assoc($colvo1);
echo $colvo['counter'];
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in O:\home\test1.ru\www\index.php on line 152
<?
if ($idcolvo < 0){
$regauth = $myrow['authreg'];
}
else{
$key = ("SELECR * FROM `key` WHERE `hoid`='$idcolvo' LIMIT 1");
$key = mysql_fetch_assoc($regauth);
}
?>
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in O:\home\test1.ru\www\index.php on line 163
Цитата |
array mysql_fetch_assoc ( resource $result ) |
if ($idcolvo == 0)затем мы идем сюда
$key = ("SELECR * FROM `key` WHERE `hoid`='$idcolvo' LIMIT 1");и тут что то не так
$key = mysql_fetch_assoc($regauth);
$key = mysql_query("SELECТ * FROM `key` WHERE `hoid`=$idcolvo LIMIT 1");
<?
if ($idcolvo == 0){
$regauth = $myrow['authreg'];
}
else{
$key = mysql_query("SELECR * FROM `key` WHERE `hoid`=$idcolvo LIMIT 1");
$key = mysql_fetch_assoc($regauth);
}
?>
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in O:\home\test1.ru\www\index.php on line 163