Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/10/2010, 17:15
Avatar de rickyper
rickyper
 
Fecha de Ingreso: abril-2009
Mensajes: 182
Antigüedad: 15 años
Puntos: 10
Respuesta: ayuda con caracter

Puedes hacerlo asi:
Código PHP:
Ver original
  1. Tipomoneda="$";
  2. $queEmp = "SELECT qna_abono,concat($Tipomoneda,' ',format(importe,2)) as importe,tnomina from abonos where folio='$x' and id_seccion='$y' and importe > '0' and qna_abono > '0'";
  3. $resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
  4. $totEmp = mysql_num_rows($resEmp);
Tambien asi:
Código PHP:
Ver original
  1. $queEmp = "SELECT qna_abono,concat('$',' ',format(importe,2)) as importe,tnomina from abonos where folio='$x' and id_seccion='$y' and importe > '0' and qna_abono > '0'";
  2. $resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
  3. $totEmp = mysql_num_rows($resEmp);
__________________
www.granideamillonaria.com