select da due o piu tabelle
Salve dopo aver realizzato due tabelle opportunatamente relazionate, devo estrarre i dati in file php
ho realizzato due file uno dove vengono scelti i record, e questo dove dovrebbe comparire "la lista dei dati"
$select = 'SELECT DISTINCT id, testodellatabella1 '; (come faccio ad inserire una nuova tabella ?)
$from = ' FROM tabella1;
$where = ' WHERE 1=1';
$autoreid = $_POST['autoreid'];
if ($autoreid != '') { // An author is selected
$where .= " AND autoreid='$autoreid' ";
}
?>
<table>
<?php
$datiinoutput = @mysql_query($select .$from . $where);.......
Auguri