Добро пожаловать, Гость!
Гдеошибка - Страница 3
Помощь мастерам | Гдеошибка
Desvi :
не показывает смайл, где тут ошибка может быть? скажите пжл.
<?
$my_smile= mysql_result(mysql_query("SELECT COUNT(*) FROM `my_smile` WHERE `user_id` = '$user[id]'"),0);
if($my_smile==0){
<?
}
else
{
$s=mysql_query("SELECT * FROM `my_smile` WHERE `user_id` = '$user[id]' ORDER BY `id` ASC LIMIT 20");
while($sm = mysql_fetch_array($s)){
$q=mysql_query("SELECT * FROM `smile` WHERE `id` = '$sm[smile]' ORDER BY `id` ASC LIMIT 20");
while($post = mysql_fetch_array($q)){
?>
<a href="javasсript:smile('
<?echo"$post[smile]";?>
')">
<?echo'<img src="/style/smiles/'.$post['name'].'" alt="'.$post['name'].'"/>';?>
</a>
<?
Гдеошибка
13 Окт 2014не показывает смайл, где тут ошибка может быть? скажите пжл.
<?
$my_smile= mysql_result(mysql_query("SELECT COUNT(*) FROM `my_smile` WHERE `user_id` = '$user[id]'"),0);
if($my_smile==0){
<?
}
else
{
$s=mysql_query("SELECT * FROM `my_smile` WHERE `user_id` = '$user[id]' ORDER BY `id` ASC LIMIT 20");
while($sm = mysql_fetch_array($s)){
$q=mysql_query("SELECT * FROM `smile` WHERE `id` = '$sm[smile]' ORDER BY `id` ASC LIMIT 20");
while($post = mysql_fetch_array($q)){
?>
<a href="javasсript:smile('
<?echo"$post[smile]";?>
')">
<?echo'<img src="/style/smiles/'.$post['name'].'" alt="'.$post['name'].'"/>';?>
</a>
<?
Комментарии:
Desvi 13 Окт 2014
Автор темы
Samurai,
<?
$my_smile= mysql_result(mysql_query("SELECT COUNT(*) FROM `my_smile` WHERE `user_id` = '$user[id]'"),0);
if($my_smile==0){
?>
<div style="margin:4px;">
<a href="javasсript:smile('')"><img src="/style/smiles/smile.gif"/></a>
<?
if (isset($user))echo"<b><a href='/plugins/my_smiles/'>»</a></b></div>";
}
else
{
$s=mysql_query("SELECT * FROM `my_smile` WHERE `user_id` = '$user[id]' ORDER BY `id` ASC LIMIT 20");
while($sm = mysql_fetch_array($s)){
$q=mysql_query("SELECT * FROM `smile` WHERE `id` = '$sm[smile]' ORDER BY `id` ASC LIMIT 20");
while($post = mysql_fetch_array($q)){
?>
<a href="javasсript:smile('
<?echo"$post[smile]";?>
')">
<?echo'<img src="/style/smiles/'.$post['name'].'" alt="'.$post['name'].'"/>';?>
</a>
<?
}
}
if (isset($user))echo"<b><a href='/plugins/my_smiles/'>»</a></b>";
}
Автор темы
Samurai,
<?
$my_smile= mysql_result(mysql_query("SELECT COUNT(*) FROM `my_smile` WHERE `user_id` = '$user[id]'"),0);
if($my_smile==0){
?>
<div style="margin:4px;">
<a href="javasсript:smile('')"><img src="/style/smiles/smile.gif"/></a>
<?
if (isset($user))echo"<b><a href='/plugins/my_smiles/'>»</a></b></div>";
}
else
{
$s=mysql_query("SELECT * FROM `my_smile` WHERE `user_id` = '$user[id]' ORDER BY `id` ASC LIMIT 20");
while($sm = mysql_fetch_array($s)){
$q=mysql_query("SELECT * FROM `smile` WHERE `id` = '$sm[smile]' ORDER BY `id` ASC LIMIT 20");
while($post = mysql_fetch_array($q)){
?>
<a href="javasсript:smile('
<?echo"$post[smile]";?>
')">
<?echo'<img src="/style/smiles/'.$post['name'].'" alt="'.$post['name'].'"/>';?>
</a>
<?
}
}
if (isset($user))echo"<b><a href='/plugins/my_smiles/'>»</a></b>";
}