Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/03/2011, 11:42
isabellawebs
Usuario no validado
 
Fecha de Ingreso: diciembre-2009
Ubicación: Bogotá
Mensajes: 462
Antigüedad: 14 años, 4 meses
Puntos: 18
Respuesta: Es posible sumar campos desde phpmyadmin?

Código PHP:
<th width="104" rowspan="6" align="center" valign="middle" class="grabado2" scope="col"><p><span class="campos1">Usuario</span></p>
                <br><?php echo $row_rc_res['idusuario']; ?><br>
                <img src="<?php echo $row_rc_res['idpais']; ?>" width="16" height="11"></th>
              <th width="162" align="center" valign="middle" class="campos" scope="col"><p><span class="campos1">GP</span><p><?php echo $row_rc_res['idgp']; ?></p></th>
              <th width="138" rowspan="6" align="center" valign="middle" class="campos4" scope="col"><p><span class="campos1">Vuelta R&aacute;pida</span></p>
                <p><?php echo $row_rc_res['vueltarapida']; ?></p></th>
              <th width="103" rowspan="6" align="center" valign="middle" class="grabado" scope="col"><?php echo $row_rc_res['fecha']; ?></th>
            </tr>
            <tr>
              <th align="left" class="campos1" scope="col"><?php echo $row_rc_res['id1']; ?></th>
              </tr>
            <tr>
              <td class="campos1"><?php echo $row_rc_res['id2']; ?></td>
              </tr>
            <tr>
              <td class="campos1"><?php echo $row_rc_res['id3']; ?></td>
              </tr>
            <tr>
              <td class="campos1"><?php echo $row_rc_res['id4']; ?></td>
              </tr>
            <tr>
              <td class="campos1"><?php echo $row_rc_res['id5']; ?></td>
              </tr>
            <tr>
              <td height="21" bgcolor="#999999" scope="row">&nbsp;</td>
              <td height="21" bgcolor="#999999">&nbsp;</td>
              <td height="21" bgcolor="#999999">&nbsp;</td>
              <td height="21" bgcolor="#999999">&nbsp;</td>
Mas o menos donde sugiere poner id fecha, quiero llamar la suma de los campos id1, id2, id3, id5, id5. Ahi tenia una fecha pero es donde quiero hacer llegar los resltados....a ver si me puedes colaborar