Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esercizio 3 del 02-03-16 #2

Open
wants to merge 1 commit into
base: 15_cart_archive
Choose a base branch
from
Open

Conversation

nicolatoppani
Copy link
Collaborator

Non ho implementato la modifica dello stato da back-end

@@ -117,19 +117,21 @@ function salvaOrdine($prodotti, $utente) {
function getListaOrdini() {
$db = creaConnessionePDO();

$query = "SELECT ordini.id, ordini.data, clienti.nome, clienti.cognome, COUNT(ordini_dettagli.id) as num_prodotti, ordini.totale
FROM ordini, clienti, ordini_dettagli
$query = "SELECT ordini.id, ordini.data, clienti.nome, clienti.cognome, COUNT(ordini_dettagli.id) as num_prodotti, ordini.totale, spedizione.stato
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sarebbe stato comodo avere una migrazione per tracciare i cambiamenti allo schema del database

@marcosh
Copy link
Member

marcosh commented Mar 9, 2016

Bene! Prossimo passo potrebbe essere (stato) trasformare l'ordine in una classe e utilizzarla anche per gestire lo stato dell'ordine

@@ -0,0 +1,11 @@
<?php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quando facciamo i commit, stiamo attenti ad includere solo i file che riguardano la funzionalità su cui stiamo lavorando. Questo file per esempio non centra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants