<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>Oleoo.com - se logger</title>
		<link>http://www.oleoo.com/topic261947.html</link>
		<description>The most recent posts in se logger.</description>
		<lastBuildDate>Sun, 26 Oct 2008 12:04:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title>Re: se logger</title>
			<link>http://www.oleoo.com/post3043761.html#p3043761</link>
			<description>$reponse = mysql_query(&quot;SELECT pseudo FROM membre WHERE pseudo=&#039;$_POST[&#039;pseudo&#039;]&#039;&quot;or die(mysql_error()));

il y aurais pas une parenthèse en trop ? :o</description>
			<author>dummy@example.com (White Angels)</author>
			<pubDate>Sun, 26 Oct 2008 12:04:48 +0000</pubDate>
			<guid>http://www.oleoo.com/post3043761.html#p3043761</guid>
		</item>
		<item>
			<title>Re: se logger</title>
			<link>http://www.oleoo.com/post3041874.html#p3041874</link>
			<description>Petite erreur que j&#039;ai remarquée aussi :

if($_POST[&#039;password][b][color=red]&#039;[/color][/b]== mysql_fetch_array($reponse))

Remplace le par :


if($_POST[&#039;password&#039;] == mysql_fetch_array($reponse))</description>
			<author>dummy@example.com (basti3n)</author>
			<pubDate>Wed, 01 Oct 2008 13:57:55 +0000</pubDate>
			<guid>http://www.oleoo.com/post3041874.html#p3041874</guid>
		</item>
		<item>
			<title>Re: se logger</title>
			<link>http://www.oleoo.com/post3033244.html#p3033244</link>
			<description>Salut Adrien, ton problème vient que tu essaye de comparer un tableau et une variable.

C&#039;est comme si tu faisait 
[code]if($_POST[&quot;pseudo&quot;] == array())
{   ...
}[/code]
Stock ta réposne dans une variable
[code]$row = mysql_fetch_object($response);
if($_POST[&quot;pseudo&quot;] == $row-&gt;pseudo)
{   ...
}[/code]
mysql_fetch_array retourne la ligne complet mais ne différentie pas si il y a un ou plusieurs champs.

En espérant que tu aie compris le principe.</description>
			<author>dummy@example.com (flahaye)</author>
			<pubDate>Wed, 20 Aug 2008 17:49:18 +0000</pubDate>
			<guid>http://www.oleoo.com/post3033244.html#p3033244</guid>
		</item>
		<item>
			<title>se logger</title>
			<link>http://www.oleoo.com/post3033094.html#p3033094</link>
			<description>bonjour tout le monde,
je tente de creer un script permettant de se rendre a une page en se connectant au moyen d un pseudo et d un mot de passe.
je ne souhaite pas la solution juste l explication me permettant de la trouver!
merci bien

[code] type=&quot;php&quot;&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;htmlxmlns=&quot;http://www.w3.org/1999/xhtml&quot;xml:lang=&quot;fr&quot;&gt;

&lt;?php
	mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;);
	mysql_select_db(&quot;membres&quot;);

	if(isset($_POST[&#039;pseudo&#039;])&amp;&amp;isset($_POST[&#039;password&#039;]))
	{
		$reponse = mysql_query(&quot;SELECT pseudo FROM membre WHERE pseudo=&#039;$_POST[&#039;pseudo&#039;]&#039;&quot;or die(mysql_error()));
		if($_POST[&#039;pseudo&#039;] == mysql_fetch_array($reponse))
		{
			$reponse = mysql_query(&quot;SELECT password FROM membre WHERE password=&#039;$_POST[&#039;password&#039;]&#039;&quot;);
			if($_POST[&#039;password]&#039;== mysql_fetch_array($reponse))
			{
				&lt;a href=&quot;http://127.0.0.1/essais/accueil.html&quot;&gt; /a&gt;
			}
		}
	}
	mysql_close();
?&gt;[/code]
et voici le code d erreur qu il m affiche:
[code]Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\EasyPHP 2.0b1\www\essais\log.php on line 10[/code]</description>
			<author>dummy@example.com (adrien1)</author>
			<pubDate>Wed, 20 Aug 2008 11:42:02 +0000</pubDate>
			<guid>http://www.oleoo.com/post3033094.html#p3033094</guid>
		</item>
	</channel>
</rss>
