par zeus » 16 mars 2008, 10:49
par kochalski » 16 mars 2008, 09:41
("SELECT annonces.id,annonces.theme,annonces.rex_count FROM coordonnees,annonces WHERE annonces.id_membre=coordonnees.id".$_SESSION["rex_count"]." OR annonces.id_membre=coordonnees.id".$_SESSION["theme"]."
par Cyrano » 15 mars 2008, 13:42
par kochalski » 15 mars 2008, 13:35
par Cyrano » 15 mars 2008, 13:25
par kochalski » 15 mars 2008, 12:47
par Cyrano » 15 mars 2008, 12:26
Dans "annonces.theme "on trouvera toujours 1 Dans "annonces.rex_count" on trouvera toujours 5
par kochalski » 15 mars 2008, 12:18
par Cyrano » 15 mars 2008, 12:12
par kochalski » 15 mars 2008, 12:08
par Cyrano » 15 mars 2008, 12:01
par kochalski » 15 mars 2008, 11:59
par Cyrano » 15 mars 2008, 11:11
De plus, ce passage Code : Tout sélectionnercount((annonces.theme) OR (annonces.rex_count)) ...est probablement faux.
Code : Tout sélectionner
count((annonces.theme) OR (annonces.rex_count))
par kochalski » 15 mars 2008, 10:07
query = "SELECT Id_theme,theme_site,count((annonces.theme) AND (annonces.rex_count)) FROM theme,annonces WHERE annonces.theme=theme.Id_theme OR annonces.rex_count=theme.Id_theme GROUP BY theme.Id_theme ORDER BY theme.theme_site ASC"; $result = mysql_query($query) or die("Invalid query: " . mysql_error().__LINE__.__FILE__); echo "<select name='theme_product'class=Style39>"; echo "<option value=0 select>--- Tous ---</option>"; While ($data = mysql_fetch_array($result)) { echo "<option value =".$data[0].">".$data[1]." (".$data[2].")</option>"; } echo "</select>";
par Cyrano » 15 mars 2008, 09:41