brel
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by brel
-
-
i post it like this in my page:
<?phpini_set('display_errors', 1);error_reporting(E_ALL);include ("../db_conx6/db_conx6.php");include ("root/php/include/fonc.php");include ("adminses.php.inc");if(!empty($_POST['po'])){$message=mysql_real_escape_string(htmlentities($_POST['message']));$id=($_POST['id']);$chemin1=uploaderhistorique1('img1');$chemin2=uploaderhistorique2('img2');$chemin3=uploaderhistorique3('img3');if($chemin1 !="erreur" AND $chemin2 !="erreur" AND $chemin3 !="erreur"){$resultat=uphistorique($message, $chemin1, $chemin2, $chemin3, $id);header("location:http://******/******/listerhistorique.php?mesg=<h2 style='color:white;'>Modification effectif</h2>");}else{header("location:http://******/****/uphistorique.php?id=$id&mesg=<h2 style='color:red;'>Modification non effectif</h2>");}}?>but nothing display, i juste got a white page nothing more,but into my error_log file on the server 'ive got this : [06-Aug-2015 11:00:27 Europe/Berlin] PHP Parse error: syntax error, unexpected '}' in /home/-----/public_html/-----/valhistorique.php on line 16,please somebody can tell me what should i do because i try to correct it but nothing change,Thanks -
i change my code but it doesnt works any more:
<?php
if(!empty($_POST['po'])){$message=mysql_real_escape_string(htmlentities($_POST['message']));$id=($_POST['id']);$chemin1=uploaderhistorique1('img1');$chemin2=uploaderhistorique2('img2');$chemin3=uploaderhistorique3('img3');if($chemin1 !="erreur" AND $chemin2 !="erreur" AND $chemin3 !="erreur"){$resultat=uphistorique($message, $chemin1, $chemin2, $chemin3, $id);header("location:http://mydomainename.com/contentfolder/listerhistorique.php?mesg=<h2 style='color:white;'>Modification effectif</h2>");exit();}else{header("location:http://mydomainename.com/contentfolder/uphistorique.php?id=$id&mesg=<h2 style='color:red;'>Modification non effectif</h2>");exit();}?> -
i have all readdy done it with an absolut url with a full domaine name but it doesn't work in this case, that works in some without the url can i have an example please
this is my first methode :
<?php
if(!empty($_POST['po']))
{?>
<?php
$message=mysql_real_escape_string(htmlentities($_POST['message']));
$id=($_POST['id']);
$chemin1=uploaderhistorique1('img1');
$chemin2=uploaderhistorique2('img2');
$chemin3=uploaderhistorique3('img3');
if($chemin1 !="erreur" AND $chemin2 !="erreur" AND $chemin3 !="erreur"){
$resultat=uphistorique($message, $chemin1, $chemin2, $chemin3, $id);
header("location:http://mydomainename.com/contentfolder/listerhistorique.php?mesg=<h2 style='color:white;'>Modification effectif</h2>");
exit();
}else{header("location:http://mydomainename.com/contentfolder/uphistorique.php?id=$id&mesg=<h2 style='color:red;'>Modification non effectif</h2>");
exit();
?>
<?php }}?>
-
Hello every body i'm a beginner in php programming, i wroth for a php code it's works into my local seveur but don't works on line i need help please:
<?php
if(!empty($_POST['po']))
{?>
<?php
$message=mysql_real_escape_string(htmlentities($_POST['message']));
$id=($_POST['id']);
$chemin1=uploaderhistorique1('img1');
$chemin2=uploaderhistorique2('img2');
$chemin3=uploaderhistorique3('img3');
if($chemin1 !="erreur" AND $chemin2 !="erreur" AND $chemin3 !="erreur"){
$resultat=uphistorique($message, $chemin1, $chemin2, $chemin3, $id);
header("location:listerhistorique.php?mesg=<h2 style='color:white;'>Modification effectif</h2>");
exit();
}else{header("location:uphistorique.php?id=$id&mesg=<h2 style='color:red;'>Modification non effectif</h2>");
exit();
?>
<?php }}?>
Header Location don't work on the server
in PHP
Posted
Ok, i'm trying to shearch for the error then i will let you know, thanks for helping..