Jump to content

brel

Members
  • Posts

    5
  • Joined

  • Last visited

brel's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Ok, i'm trying to shearch for the error then i will let you know, thanks for helping..
  2. i post it like this in my page: <?php ini_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
  3. 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();} ?>
  4. 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 }}?>
  5. 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 }}?>
×
×
  • Create New...