buenos dias,
Este es tu codigo:
Código PHP:
include("config.php");
$grabthreadids = mysql_query("SELECT threadid FROM post WHERE post.userid=2 AND post.visible=1");
$post[thisforumonly] = "0";
while ($getcount = mysql_fetch_array($grabthreadids)) {
$resulttt = mysql_num_rows("SELECT postusername FROM thread where threadid=$getcount[0] and forumid=44");
while ($rowtt = mysql_fetch_array($resulttt, MYSQL_NUM)) {
echo $rowtt[0];
echo "-";
}
}
mysql_num_rows($resulttt);
y el q veo yo correcto es el siguiente:
Código PHP:
include("config.php");
$grabthreadids = mysql_query("SELECT threadid FROM post WHERE post.userid=2 AND post.visible=1");
$post[thisforumonly] = "0";
while ($getcount = mysql_fetch_array($grabthreadids)) {
//aqui cambiamos de mysql_num_rows a mysql_query
//lo q tienes q hacer es una consulta no mirar las filas
$resulttt = mysql_query("SELECT postusername FROM thread where threadid=$getcount[0] and forumid=44");
while ($rowtt = mysql_fetch_array($resulttt)) {
//aqui como tienes echo el mysql_fetch_array te lo coje por nombre de campo.
//si kieres ir por numero utiliza el mysql_fetch_row.
echo $rowtt[postusername];
echo "-";
}
}
mysql_num_rows($resulttt);
Fiajte en los cambios.
saludos