1
Gestione Form / Re:Posizionare chronoconnectivity
« il: 19 Mag 2011, 20:55:58 »
Grazie 1000 vales... proverò a smanettare un pò e vedere che salta fuori...
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
<?php
$selected = JRequest::getString('check0', '', 'post');
/* mi recupero la variabile dal form e la assegno a $selected che conterrà quindi 1 o 2 o 3 */
$db =& JFactory::getDBO();
$query = "
SELECT COUNT(*) FROM Abbonamenti as a WHERE a.check0 LIKE
'%$selected%' ";
/* creo una query cercando nel campo della tabella interessata*/
$db->setQuery($query);
$result = $db->loadResult();
/* lancio l'interrogazione e carico i risultati in $result */
?>
<br/>
<p align="center"><b> <?php echo $result; ?> </b></p>
<br/>
<br/>
<!-- "impagino" il tutto -->
<?php
$tot++;
?>
così che mi conti il risultato ed in footer ho messo l'echo di $tot ma non mi visualizza nulla...<a href="index.php?.....etc...etc..." style="text-decoration: none;"><input value="Inserisci più informazioni" type="button"></a>
<?php $nome=JRequest::getString('nome','','post');
echo "WHERE 'nome'='$nome' ";
?>
2- in header ho: <?php
$nome=JRequest::getString('nome,'','post');
?>
<input type='text' name='nome' id='nome' value='<?php echo $nome; ?>' />
 
<input type='submit' name='submit' id='submit' value='Invia'/>
<table border="1">
<thead>
<tr>
<th style='width:250px;'>Cognome</th>
<th style='width:250px;'>Nome</th>
</tr>
</thead>
<tr>
<td>{nome}</td>
<td>{cognome}</td>
</tr>
4- e nel footer semplicemente </table>
![]() |
|