IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Linux Discussion :

Résultat de mon code php : page blanche


Sujet :

Linux

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    54
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 54
    Par défaut Résultat de mon code php : page blanche
    Bonjour,
    j'ai un pb d'interpretation de mon script php , une page vierge est toujours affichée
    , je ne sais pas si c'est un pb de version de php ou d'incompatibilité avec le script fait
    config : linux red hat 4.0 Ent
    apache : httpd-2.0.52-12
    php-4.3.9
    mysql-4.1.7
    Existe-t-il un outil de développement web php pour linux comme dreamweaver?
    Merci de votre aide
    fichier
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    <?php require_once('Connections/conf.php'); ?>
     
     
    <?php
     
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
     
    {
     
      $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
     
     
     
      switch ($theType) {
     
        case "text":
     
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
     
          break;    
     
        case "long":
     
        case "int":
     
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
     
          break;
     
        case "double":
     
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
     
          break;
     
        case "date":
     
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
     
          break;
     
        case "defined":
     
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
     
          break;
     
      }
     
      return $theValue;
     
    }
     
     
     
    $editFormAction = $_SERVER['PHP_SELF'];
     
    if (isset($_SERVER['QUERY_STRING'])) {
     
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
     
    }
     
     
     
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
     
      $insertSQL = sprintf("INSERT INTO groupe (nom) VALUES (%s)",
     
                           GetSQLValueString($_POST['nom_groupe'], "text"));
     
     
     
      mysql_select_db($database_conf, $conf);
     
      $Result1 = mysql_query($insertSQL, $conf) or die(mysql_error());
     
     
     
      $insertGoTo = "edit_group.php";
     
      if (isset($_SERVER['QUERY_STRING'])) {
     
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
     
        $insertGoTo .= $_SERVER['QUERY_STRING'];
     
      }
     
      header(sprintf("Location: %s", $insertGoTo));
     
    }
     
     
     
    mysql_select_db($database_conf, $conf);
     
    $query_groupe1 = "SELECT groupe.groupeid, groupe.nom FROM groupe";
     
    $groupe1 = mysql_query($query_groupe1, $conf) or die(mysql_error());
     
    $row_groupe1 = mysql_fetch_assoc($groupe1);
     
    $totalRows_groupe1 = mysql_num_rows($groupe1);
     
    ?>
     
    <?php 
     
    require("control_session.php");
     
    require("tete.php");
     
     
     
    	?>	
     
     
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml">
     
    <head>
     
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
    <title>OUAKUS Website TECHNOLOGIES-gestion des groupes</title>
     
    <link rel="stylesheet" href="style.css"  type="text/css"/>
     
    <style type="text/css">
     
    <!--
     
    .Style2 {color: #FFFFFF}
     
    -->
     
    </style>
     
    </head>
     
    <body>
     
     
     
     
    <div id="wrapper">
     
    	<div id="header">
     
    		<span id="logo"><a href="#"><marquee><b>OUAKUS Website TECHNOLOGIES</b></marquee></a></span>
     
           <!-- <span id="logo"><a href="#"><marquee><b>OUAKUS Website TECHNOLOGIES</b></marquee></a></span>-->
     
    		<div id="navigation">
     
    			<ul>
     
    			    <li><a href="#">UTILISATEUR</a></li><li>:</li>
     
                    <li><a href="#"> 
     
                    <? echo '<li><a href="">' ;
     
                	   echo $_SESSION['nom_emp']; 
     
                       echo '</a></li>';
     
    			    ?>
     
     
     
    				   </a></li><li>|</li><li>|</li><li>|</li><li>|</li><li>|</li>
     
     
     
    				      <li> <a href="connexion.php?act=logout"> 
     
    					<?php echo $_SESSION['connexion'] ;
     
    					 echo "</a></li><li>|</li>";
     
    					?>
     
    				<li class="last"><a href="#"> contact</li></a>
     
    			</ul>
     
    		</div>
     
    	</div><!--End header-->
     
      <div id="inner-wrap">
     
    		<div id="side-panel">
     
    		  <?php include("droite.php");  ?>
     
    		</div>
     
    		<!--End side-panel-->
     
     
     
    		<div id="main">
     
     
     
    		<div align="center">
     
    		<p><label> creer un nouveau groupe</label></p></br></br>
     
    		</br></br>
     
    		<form action="<?php echo $editFormAction; ?>" method="POST" name="form1">
     
    		<input name="nom_groupe" type="text" /></br></br>
     
    		 <div>
     
    		   <input type="submit" name="submit" value="Enregistrer" tabindex="3" /></div>
     
     
     
    		 <input type="hidden" name="MM_insert" value="form1">
     
    		</form><div style="text-align:justify;">
     
     
     
    		</br></br>
     
    		</br></br>
     
     
     
    		<p>&nbsp;</p>
     
    		<table width="90%" border="1" align="right" cellpadding="1" cellspacing="10" bgcolor="#336699">
     
      <tr>
     
        <td>Id</td>
     
        <td>nom </td>
     
    	<td>action....</td>
     
    	<td>execution</td>
     
      </tr>
     
      <?php do { ?>
     
       <form method="post" name="rechercher" action="">
     
        <tr>
     
          <td bgcolor="#fae6dc"><?php echo $row_groupe1['groupeid']; ?></td>
     
          <td bgcolor="#fae6dc"><?php echo $row_groupe1['nom']; ?></td>
     
    	  <td bgcolor="#fae6dc">
     
     
     
    	  <select id="note" name="note" tabindex="11">
     
            <option value="supprimer">supprimer</option>
     
            <option value="modifier" selected="selected">modifier</option>
     
          </select></td>
     
    	  <td bgcolor="#fae6dc"> <input type="submit" name="submit" value="OK" tabindex="3" />  </td>
     
        </tr></form>
     
     
     
        <?php } while ($row_groupe1 = mysql_fetch_assoc($groupe1)); ?>
     
    </table>
     
     
     
    </div>
     
    		</div>
     
    		</div><!--End main-->
     
    	</div><!--End inner-wrap-->
     
     
     
     
     
    	<div id="footer">
     
    		<p class="clear">copyright &copy; 2008. |  <a href="http://validator.w3.org/check?uri=referer" class="under">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" class="under">CSS</a>
     
    		<br /><a href="http://www.utah-website-design.org">Empowered</a> by <a href="http://hi5.ouakus.com">ouakus</a>.</p>
     
     
     
     
     
    	<p>	<?php
     
    $date = date(" d-m-Y ");
     
    $heure = date(" H:i ");
     
    echo " $date , $heure ";
     
    ?></p>
     
        </div><!--End footer-->
     
    </div><!--End wrapper-->
     
    </body>
     
    </html>
     
    <?php
     
    mysql_free_result($groupe1);
     
    ?>

  2. #2
    Membre confirmé
    Inscrit en
    Septembre 2008
    Messages
    60
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 60
    Par défaut
    "Existe-t-il un outil de developpement web php pour linux comme dreamweaver?
    Merci de votre aide"

    oui netbeans ou eclipse je te conseil netbeans

Discussions similaires

  1. Réponses: 4
    Dernier message: 30/05/2007, 18h05
  2. Erreur dans mon code php que j'arrive à voir
    Par babouba dans le forum Langage
    Réponses: 2
    Dernier message: 19/03/2007, 16h48
  3. [Dates] Le résultat de mon code est inexact
    Par bebas dans le forum Langage
    Réponses: 1
    Dernier message: 27/02/2007, 10h50
  4. Réponses: 6
    Dernier message: 19/07/2006, 13h48
  5. Erreur dans mon code PHP
    Par jack_1981 dans le forum Langage
    Réponses: 6
    Dernier message: 12/05/2006, 10h01

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo