Forum Panda Pirate
Forum Grenier xIF  
Panda Pirate, forum rôliste
Lisez d'abord la FAQ, svp =>[ FAQ ] [ Thread Index ] [ Search ] [ Archives ] [ Pandapirate ]

Topic: Pour la transparence
Posted by: Marneus at mar. 29 juin 2004 10:57:30 CEST

Keywords: pour vraiment montrer que c'était pas dur...

Message:

Là où tu as (ligne 4):
if( isset( $id ) ):
	archiveThread( $id );
	header( "Location: archive.php" );


Tu mets 3 lignes en plus:
if( isset( $id ) ):
  $result = mysql_query( "SELECT num FROM forum WHERE rootID=$id" ) or error( mysql_error() );
  $row = mysql_fetch_array( $result );
  if ($row[ 'num' ] <> 0) mysql_query( "DELETE FROM notification where num = $row[ 'num' ]" ) or error( mysql_error() );
	archiveThread( $id );
	header( "Location: archive.php" );




Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 98

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/clients/13eaf4559a54d78787520f07cab62616/web/panda/archreply.php on line 101
<< Previous topic:  Invocation de Bou, Bartab et Brunal - Raf , archange fournisseur presidentiel de tanks, ven. 02 juil. 2004 19:49:54 CEST
>> Next topic:  Les films pornos pour les pandas! (sujet interdit - de 18 ans :) - Aldarian, lun. 28 juin 2004 16:56:11 CEST

Top


Les sites autour du Panda
Pandapirate.net   CasusNO

Le GROG c'est bon, buvez-en!

Powered by Pandapirate, based on Zforum © XGRA 2001.