Mini Shell

Direktori : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires/
Upload File :
Current File : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires/avis-publier.php

<?php
require_once(__DIR__ . "/_include/init.php");
print_r($_POST);
if (!empty($_POST)) 
{
    extract($_POST);
	$query = $db->prepare("select avis, note_g, note_c1, note_c2, note_c3, note_c4, note_c5, note_c6 from prestataires where id = :prest_id_view");    
	$query->bindValue('prest_id_view', $prest_id_view,SQLITE3_TEXT);
	$prestataire = $query->execute();
	$row = $prestataire->fetchArray(SQLITE3_ASSOC));
	

	$upd_avis = (int)$row['avis'] + 1;
	$upd_note_g = ((float)$row['note_g'] + ((int)$note_c1 + (int)$note_c2 + (int)$note_c3 + (int)$note_c4 + (int)$note_c5 + (int)$note_c6) / 6) / 2;
	$upd_note_c1 = ((int)$row['note_c1'] + (int)$note_c1) / 2;
	$upd_note_c2 = ((int)$row['note_c2'] + (int)$note_c2) / 2;
	$upd_note_c3 = ((int)$row['note_c3'] + (int)$note_c3) / 2;
	$upd_note_c4 = ((int)$row['note_c4'] + (int)$note_c4) / 2;
	$upd_note_c5 = ((int)$row['note_c5'] + (int)$note_c5) / 2;
	$upd_note_c6 = ((int)$row['note_c6'] + (int)$note_c6) / 2;
	
	// UPDATE prestataire
	$query = $db->prepare("update prestataires set avis = :upd_avis, note_g = :upd_note_g, note_c1 = :upd_note_c1, note_c2 = :upd_note_c2, note_c3 = :upd_note_c3, note_c4 = :upd_note_c4, note_c5 = :upd_note_c5, note_c6 = :upd_note_c6, 
							publie = 1 where id= :id_view");
							
	$query->bindValue('avis', $upd_avis,SQLITE3_INTEGER);
	$query->bindValue('note_g', $upd_note_g,SQLITE3_FLOAT);
	$query->bindValue('note_1', $upd_note_1,SQLITE3_FLOAT);
	$query->bindValue('note_2', $upd_note_2,SQLITE3_FLOAT);
	$query->bindValue('note_3', $upd_note_3,SQLITE3_FLOAT);
	$query->bindValue('note_4', $upd_note_4,SQLITE3_FLOAT);
	$query->bindValue('note_5', $upd_note_5,SQLITE3_FLOAT);
	$query->bindValue('note_6', $upd_note_6,SQLITE3_FLOAT);
	$query->bindValue('publie',1,SQLITE3_INTEGER);
	$query->execute();

	// UPDATE avis
	$query = $db->prepare("update avis set publie = 1 where id = :id_view");
	$query->bindValue('id_view', $id_view,SQLITE3_INTEGER);
	$query->execute();
	
	echo "Avis publié";
}
?>
August 17, 2020 – Page 2 – Base de données MCPV "Prestataires"

Day: August 17, 2020

People with small penis sizes would possibly want to make use

#1 Online Sexual Wellness Shop I feel that masturbating utilizing my non-dominant hand is interestingly completely different – it’s like someone else is doing it for me enhancer beads sleeve, extra like bringing Sandra on board. People with small penis sizes would possibly want to make use of penis sleeve inserts to cowl the air…

Read More