PHP - ALTER TABLE EN UN SELECT

 
Vista:

ALTER TABLE EN UN SELECT

Publicado por alexcoinc (1 intervención) el 14/05/2010 23:57:25
Buenas tardes

Tengo un query asi:

$consulta ="select * from pagos;

mysql_select_db($datosco['base'],$CONEXION);

$result = mysql_query($consulta);

$fila=mysql_num_rows($result);

// Todo esto hasta aqui funciona bien.

// verifico que haya algo en la consulta

// si hay registros
If ($fila>0)
{
// AQUI QUIERO ALTERAR LA CONSULTA PARA AGREGARLE UN CAMPO LLAMADO GRUPO
// QUE EN LA CONSULTA DE PAGOS SE CREE UN CAMPO MAS LLAMADO GRUPO
// Y PODERLO UTILIZAR MAS ABAJO EN EL WHILE

while ($row=mysql_fetch_assoc($result))

}

COMO HAGO ESA ALTERACION .....PARA PODER UTILIZAR EL NUEVO CAMPO GRUPO

Y COMO LO PODRIA UTILIZAR ??

Gracias por contestar !!!

alexcoinc
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder