<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios en: Tutorial básico para hacer autocompletar con JQuery</title>
	<atom:link href="http://asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/</link>
	<description>apuntes personales, arquitectura web y negocios en internet</description>
	<lastBuildDate>Wed, 25 Jan 2012 13:52:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Por: sebatobeen</title>
		<link>http://asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-487</link>
		<dc:creator>sebatobeen</dc:creator>
		<pubDate>Mon, 29 Mar 2010 01:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-487</guid>
		<description>Lo puedes sacar asi:
$db = new mysqli(&#039;localhost&#039;, &#039;root&#039; ,&#039;clave&#039;, &#039;bd&#039;);
	$db-&gt;query(&quot;SET NAMES &#039;latin1&#039;′&quot;);
	$db-&gt;query(&quot;SET CHARACTER SET latin1&quot;);
	$db-&gt;query(&quot;SET COLLATION_CONNECTION = &#039;latin1_swedish_ci&#039;&quot;);
	if(!$db) {
		// Show error if we cannot connect.
		echo &#039;ERROR: Could not connect to the database.&#039;;
	} else {
		// Is there a posted query string?
		if(isset($_POST[&#039;queryString&#039;])) {
			$queryString = $db-&gt;real_escape_string($_POST[&#039;queryString&#039;]);
			$queryString = iconv(&#039;UTF-8&#039;,&#039;latin1&#039;,$queryString);
			// Is the string length greater than 0?

			if(strlen($queryString) &gt;0) {

				$query = $db-&gt;query(&quot;SELECT nombre FROM pelicula WHERE nombre LIKE &#039;$queryString%&#039; LIMIT 10&quot;);
				if($query) {
					while ($result = $query -&gt;fetch_object()) {
						// YOU MUST CHANGE: $result-&gt;value to $result-&gt;your_colum
						//echo &#039;nombre.&#039;\&#039;);&quot;&gt;&#039;.$result-&gt;nombre.&#039;&#039;;
						$strUTF = iconv(&#039;latin5&#039;,&#039;UTF-8&#039;,$result-&gt;nombre);
						echo &#039;&#039;.$strUTF.&#039;&#039;;
	         		}
				} else {
					echo &#039;ERROR: There was a problem with the query.&#039;;
				}
			} else {
				// Dont do anything.
			} // There is a queryString.
		} else {
			echo &#039;There should be no direct access to this script!&#039;;
		}
	}</description>
		<content:encoded><![CDATA[<p>Lo puedes sacar asi:<br />
$db = new mysqli(&#8216;localhost&#8217;, &#8216;root&#8217; ,&#8217;clave&#8217;, &#8216;bd&#8217;);<br />
	$db-&gt;query(&#8220;SET NAMES &#8216;latin1&#8242;′&#8243;);<br />
	$db-&gt;query(&#8220;SET CHARACTER SET latin1&#8243;);<br />
	$db-&gt;query(&#8220;SET COLLATION_CONNECTION = &#8216;latin1_swedish_ci&#8217;&#8221;);<br />
	if(!$db) {<br />
		// Show error if we cannot connect.<br />
		echo &#8216;ERROR: Could not connect to the database.&#8217;;<br />
	} else {<br />
		// Is there a posted query string?<br />
		if(isset($_POST['queryString'])) {<br />
			$queryString = $db-&gt;real_escape_string($_POST['queryString']);<br />
			$queryString = iconv(&#8216;UTF-8&#8242;,&#8217;latin1&#8242;,$queryString);<br />
			// Is the string length greater than 0?</p>
<p>			if(strlen($queryString) &gt;0) {</p>
<p>				$query = $db-&gt;query(&#8220;SELECT nombre FROM pelicula WHERE nombre LIKE &#8216;$queryString%&#8217; LIMIT 10&#8243;);<br />
				if($query) {<br />
					while ($result = $query -&gt;fetch_object()) {<br />
						// YOU MUST CHANGE: $result-&gt;value to $result-&gt;your_colum<br />
						//echo &#8216;nombre.&#8217;\');&#8221;&gt;&#8217;.$result-&gt;nombre.&#8221;;<br />
						$strUTF = iconv(&#8216;latin5&#8242;,&#8217;UTF-8&#8242;,$result-&gt;nombre);<br />
						echo &#8221;.$strUTF.&#8221;;<br />
	         		}<br />
				} else {<br />
					echo &#8216;ERROR: There was a problem with the query.&#8217;;<br />
				}<br />
			} else {<br />
				// Dont do anything.<br />
			} // There is a queryString.<br />
		} else {<br />
			echo &#8216;There should be no direct access to this script!&#8217;;<br />
		}<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: José Manuel rangel</title>
		<link>http://asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-486</link>
		<dc:creator>José Manuel rangel</dc:creator>
		<pubDate>Tue, 23 Feb 2010 19:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-486</guid>
		<description>como hacer si en un mismo formulario quieres colocar 2 campos iguales... e tratado de modificar las funciones pero nada porque los parametros no son variables</description>
		<content:encoded><![CDATA[<p>como hacer si en un mismo formulario quieres colocar 2 campos iguales&#8230; e tratado de modificar las funciones pero nada porque los parametros no son variables</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Jair</title>
		<link>http://asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-485</link>
		<dc:creator>Jair</dc:creator>
		<pubDate>Mon, 29 Jun 2009 22:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-485</guid>
		<description>como sacar la ñ y los acentos, que me salen signos, te agradesco puedas decirlo, gracias</description>
		<content:encoded><![CDATA[<p>como sacar la ñ y los acentos, que me salen signos, te agradesco puedas decirlo, gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: LUPITA</title>
		<link>http://asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-484</link>
		<dc:creator>LUPITA</dc:creator>
		<pubDate>Mon, 23 Feb 2009 16:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2007/09/26/tutorial-basico-para-hacer-autocompletar-con-jquery/#comment-484</guid>
		<description>hola!

pues mmm si pusieras todo el ejemplo no estaria nada mal

es k es k eso me dejaron de tarea y ps no se como hacerlo

pero gracias por la informacion</description>
		<content:encoded><![CDATA[<p>hola!</p>
<p>pues mmm si pusieras todo el ejemplo no estaria nada mal</p>
<p>es k es k eso me dejaron de tarea y ps no se como hacerlo</p>
<p>pero gracias por la informacion</p>
]]></content:encoded>
	</item>
</channel>
</rss>

