free news publishing php script - phpEnter

Beta Version => General Questions and Comments => Topic started by: christophe on May 02, 2017, 11:21:06 PM

Title: Nombre de commentaire dans les news
Post by: christophe on May 02, 2017, 11:21:06 PM
Bonsoir à tous, comment augmenter le nombre limité à 4 commentaires par news. Merci pour votre aide.
Title: Re: Nombre de commentaire dans les news
Post by: aleks on May 03, 2017, 01:18:04 AM
In news.php

replace this code:

Code: [Select]
$ae = $conn->Execute('SELECT * FROM reviews WHERE comrev = '.$conn->qstr($name).' ORDER BY revid DESC LIMIT 4');
with this code:

Code: [Select]
$ae = $conn->Execute('SELECT * FROM reviews WHERE comrev = '.$conn->qstr($name).' ORDER BY revid DESC');
Title: Re: Nombre de commentaire dans les news
Post by: christophe on May 04, 2017, 10:37:27 AM
Merci beaucoup