Ver Mensaje Individual
  #12 (permalink)  
Antiguo 18/06/2011, 13:21
sebacomas
 
Fecha de Ingreso: mayo-2010
Mensajes: 414
Antigüedad: 14 años
Puntos: 2
Respuesta: reemplazar datos mysql

Ok, entiendo, lo que hice es lo siguiente:

<?php

$texto=$_POST["texto"];
$idioma=$_POST["idioma"];
$tipo=$_POST["tipo"];


include ("../configuracion/conexion-usuario.php");
include("conexion.php");
$orden="SELECT * FROM textos WHERE idioma='$idioma' AND tipo='$tipo'";
$rs=mysql_query($orden, $conn);

if (mysql_num_rows!=0){
$orden2="UPDATE textos SET texto = '$texto'";
$rs2=mysql_query($orden2, $conn) or die(mysql_error());
}

?>


Igual no me lo reemplaza!