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

Lo puse asi en el lugar donde quiero que salagan los resultados y no me sale nada....le echas un vistazo?


Código PHP:
<table width="525" border="0">
            <tr>
              <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 $suma=$row_rc_res['id1']+$row_rc_res['id2']+$row_rc_res['id3']+$row_rc_res['id4']+$row_rc_res['id5']; ?></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>
            </tr>
          </table>