Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/04/2014, 21:29
ludwingamd
 
Fecha de Ingreso: abril-2014
Ubicación: mexico
Mensajes: 6
Antigüedad: 12 años, 5 meses
Puntos: 0
Pregunta no procede conversion iconv

Miren el problema es:
Posteo todos los datos pero al pasar por la convercion me manda a mi error de qe no postee todo lo necesario
Código PHP:
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Ludwingamd movil - Registrando Post</title>
</head>
<body>
<?php include("../../menu/menu.php");
session_start();
?><br><br>
<?php
header
("Content-Type: text/html;charset=utf-8");

$usu = $_SESSION['usu'];

$img = $_POST['img'];

$ti = $_POST['titulo'];

$deco = $_POST['deco'];

$dec = $_POST['edited'];

$typ = $_POST['tipo'];

$back = $_POST['url'];


setlocale(LC_ALL,”es_MX”);
$usu = iconv("UTF-8", "ISO-8859-1", $usu);
$img = iconv("UTF-8", "ISO-8859-1", $img);
$ti = iconv("UTF-8", "ISO-8859-1", $ti);
$deco = iconv("UTF-8", "ISO-8859-1", $deco);
$dec = iconv("UTF-8", "ISO-8859-1", $dec);
$typ = iconv("UTF-8", "ISO-8859-1", $typ);

if (
$usu==""|$typ==""|$ti==""|$deco==""|$dec=="")
{
echo 
"<script languaje='javascript'>
    alert('Debes ingresar todos los datos solicitados para postear.');
    window.history.back()
   </script>"
;
}
else
{
 
$conexion = mysql_connect("xxxxxxxxx","xxxxxxxxxxxxx","xxxxxxxxx");
 
mysql_select_db("u527322371_gral", $conexion);
 if(!
mysql_query("INSERT INTO Posts(usuario,titulo,desco,descripcion,imagen,tipo) values ('".$usu."','".$ti."','".$deco."','".$dec."','".$img."','".$typ."')"));
echo 
'<br>Si no te redireccionamos <a href="http://ludwingamd.url.ph/Posts/New/Exito/">click aqui</a>';
header('Location: http://ludwingamd.url.ph/Posts/New/Exito/');}
?>
</body>
</html>

Última edición por Triby; 01/05/2014 a las 21:21 Razón: Editar info de conexión