revcms a habbo edit but I only need the php,
the css I can do by myself
<?php
$getAuthor = mysql_query("SELECT author FROM cms_news WHERE id='".intval($_GET['id'])."' LIMIT 1");
$author = mysql_result($getAuthor, 0);
$getFigure = mysql_query("SELECT figure FROM users WHERE username='".$author."' LIMIT 1");
$figure = mysql_result($getFigure, 0);
$authorFigure = "<img src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure=".$figure."&direction=2&head_direction=3&action=crr=6&gesture=sml\">"
?>
<?php
$getAuthor = mysql_query("SELECT author FROM cms_news WHERE id='".intval($_GET['id'])."' LIMIT 1");
$author = mysql_result($getAuthor, 0);
$getFigure = mysql_query("SELECT figure FROM users WHERE id='".$author."' LIMIT 1");
$figure = mysql_result($getFigure, 0);
$authorFigure = "<img src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure=".$figure."&direction=2&head_direction=3&action=crr=6&gesture=sml\">"
?>
Thank you so much!If the cms_news table author field uses the username:
PHP:<?php $getAuthor = mysql_query("SELECT author FROM cms_news WHERE id='".intval($_GET['id'])."' LIMIT 1"); $author = mysql_result($getAuthor, 0); $getFigure = mysql_query("SELECT figure FROM users WHERE username='".$author."' LIMIT 1"); $figure = mysql_result($getFigure, 0); $authorFigure = "<img src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure=".$figure."&direction=2&head_direction=3&action=crr=6&gesture=sml\">" ?>
If it uses user id:
PHP:<?php $getAuthor = mysql_query("SELECT author FROM cms_news WHERE id='".intval($_GET['id'])."' LIMIT 1"); $author = mysql_result($getAuthor, 0); $getFigure = mysql_query("SELECT figure FROM users WHERE id='".$author."' LIMIT 1"); $figure = mysql_result($getFigure, 0); $authorFigure = "<img src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure=".$figure."&direction=2&head_direction=3&action=crr=6&gesture=sml\">" ?>
Simply echo $authorFigure on the place you want it.
Line 6 is: $figure = mysql_result($getFigure, 0);Warning: mysql_result() expects parameter 1 to be resource, boolean given... on line 6
$getFigure = mysql_query("SELECT figure FROM users WHERE id='".$author."' LIMIT 1");
$getFigure = mysql_query("SELECT look FROM users WHERE id='".$author."' LIMIT 1");