Código PHP:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/desterra/public_html/vpreviac.php on line 35
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/desterra/public_html/vpreviac.php on line 40
pero cada vez que le doy a la previa sale eso,el codigo que tengo es este
Código PHP:
$query = mysql_query('SELECT id_coment FROM {$db_prefix}comentarios WHERE id_coment='.id_coment.' ORDER BY id_coment DESC');
$obj = mysql_fetch_object($query);
$ultimo_id_coment = $obj->id_coment;
/***********************************************************************/
$query = mysql_query('SELECT id_coment FROM {$db_prefix}comentarios WHERE id_post = '.$ID_TOPIC);
$cantidad = mysql_num_rows($query);