All I need to do, is count all fields of the table, where postid=38
.
But my code always prints "1
" on screen, no matter what number I write in postid=38
.
<?
$consulta2 = mysql_query("select count(*) from $tabla_db4 where postid='38';");
$result2 = mysql_num_rows($consulta2);
echo (string) $result2;
?>