Ses derniers messages sur les forums
bonjour
j'ai un tableaux avec 3 colonnes:
-id (un chiffre de 1 à ...)
-login (VARCHAR(20))
-val (Enum('0','1')
je voudrais faire une rechercher et comptabilisé tous les résultat ou par exemple login= abc et val=0 et le stocké dans une variables.
merci d'avance
en faite je crois avori situé le probleme il me fait cette erreur a la premiere ligne d'écriture ds mon index.php
j'pige pas^^
enfin voila mon entete
<html>
<head>
<title>Les tissus de chez Bacha</title>
<!--<script type="text/javascript" src="images/script/script.js"></script>-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style/style.css" type="text/css">
</head>
meme apres avoir enlever mon script c exactement pareil
<script type="text/javascript" src="images/script/script.js"></script>
j ai sa en ligne 18
qd j'enleve ma fonction de langue j'obtient ceci:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homez.49/subrally/www/index.php:18) in /homez.49/subrally/www/pages/inscription.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /homez.49/subrally/www/index.php:18) in /homez.49/subrally/www/pages/inscription.php on line 24
inscription
session_start();
$_SESSION['login'] = $_POST['login'];
header('Location:index.php?page=membre');
exit();
voila l'erreur:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homez.49/subrally/www/fonctions/fr-lang.php:14) in /homez.49/subrally/www/pages/inscription.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /homez.49/subrally/www/fonctions/fr-lang.php:14) in /homez.49/subrally/www/pages/inscription.php on line 24
je comprend, apparament un probleme avec le fr-lang.php qui est include automatiquement qd on démarre le site
probleme résolue merci :)
oki merci :)
mais mnt j'ai un autre probleme
$strSQL = 'SELECT * FROM `pages` WHERE `page` = "'.$_ENV['page'].'"';
$resultat = requete_SQL($strSQL);
$tabl_result = mysql_fetch_array($resultat);
$_ENV['mots_cles'] = $tabl_result['Mots_cles'];
$_ENV['description'] = $tabl_result['Description'];
$_ENV['contenu'] = $tabl_result['Contenu'];
$_ENV['affiche_menu'] = $tabl_result['Affiche_menu'];
}
quand j'affiche $_ENV['mots_cles'] il n'y a rien :/
voila mon probleme
J'ai ma ligne d'instruction
$strSQL = 'SELECT `page` FROM `pages` WHERE `page` = '.$_ENV['page'];
où $_ENV['page'] = news
dans ma table SQL j'ai une colonne comme entete 'Page' et plusieurs autre qui suit comme 'Description' etc..
J'ai une fonction permettant d'extraire tous les info ce rapportant a la ligne, donc je cherche la ligne avec comme info 'news'
Le probléme c'est qu'il me lache ça
Erreur SQL : Unknown column 'news' in 'where clause'
SQL string : SELECT `page` FROM `pages` WHERE `page` = news
oublier de dire que je suis héberger par OVH