<?xml version="1.0" encoding="iso-8859-1"?>
<rss 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" version="2.0">
    <channel>
        <title>PHP y MySQL, foros de Cristalab</title>
        <link>http://www.cristalab.com/foros/viewforum.php?f=18</link>
        <description>Programación en PHP y bases de datos MySQL</description>
		<language>es-co</language>
		<generator>http://www.cristalab.com/</generator>
        <webMaster>webmaster@cristalab.com</webMaster>
        <atom:link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Cristalab" />
	    <item>
    	    <title>auto llenado de input</title>
        	<link>http://foros.cristalab.com/auto-llenado-de-input-t124455/</link>
			<guid>http://foros.cristalab.com/auto-llenado-de-input-t124455/</guid>
	        <description><![CDATA[ Hola foro esperando me puedan ayudar, y es con lo siguiente tengo una tabla con 5 campos<br />
Lo que pretendo es que cuando marquen un nombre sobre el combo llene los input con la información correspondiente, este problema lo he tratado de resolver desde hace mucho tiempo no tengo los conocimientos para resolverlo. Soy pri... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola foro esperando me puedan ayudar, y es con lo siguiente tengo una tabla con 5 campos<br />Lo que pretendo es que cuando marquen un nombre sobre el combo llene los input con la información correspondiente, este problema lo he tratado de resolver desde hace mucho tiempo no tengo los conocimientos para resolverlo. Soy principiante en estas tecnologías he pedido ayuda y al parecer no les importa y no me contestan o me dicen resuélvelo con esto o con lo otro pero una persona con los conocimientos mínimos se nos hace muy difícil, total estuve buscando hasta que me encontré un video que hace algo similar a lo que deseo pero…. Siempre hay un pero copie línea por linea el script pero no hace lo esperado me podrían ayudar Por Favorrrrrrrrrr…<br /><br />id_clte int(10)<br />nombre varchar (40)<br />direccion varchar(40)<br />rfc varchar(25)<br />telefono varchar(20)<br /><br />busca_emple.php<br />&lt;?<br />require (&quot;conecta.php&quot;);<br />?&gt;<br />&lt;html  lang=&quot;es&quot;&gt;<br />&lt;head&gt;<br />&lt;meta charset=&quot;UTF-8&quot;&gt;<br />&lt;title&gt;Auto Complementar PHP / MYSQL / Jquery&lt;/title&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;/query/jquery.min.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />function nomclte(id){<br />/*alert(id)*/<br />$.post(&quot;busca_emple1.php&quot;,{idclte:id},function(retorno){<br />dato = retorno.split(&quot;/&quot;);<br />$('#dir').val(dato[0]);<br />$('#rff').val(dato[1]);<br />$('#tel').val(dato[2]);<br />});<br />} <br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;form&gt;<br />Nombre del Cliente &lt;br /&gt;<br />&lt;select name=&quot;clte&quot; onchange=&quot;nomclte(this.value)&quot;&gt;<br />&lt;?<br />$sql=&quot;Select id_clte,nombre From cliente&quot;;<br />$lista=mysqli_query($conectado,$sql);<br />while($fila=mysqli_fetch_object($lista)){<br />echo &quot;<br />&lt;option value='$fila-&gt;id_clte'&gt;<br />$fila-&gt;nombre<br />&lt;/option&gt;<br />&quot;;<br />}?&gt;<br />&lt;/select&gt;&lt;br /&gt;<br />Direccion:&lt;br /&gt;<br />&lt;input type=&quot;text&quot; name=&quot;dir&quot; id=&quot;dir&quot; /&gt;&lt;br /&gt;<br />Rfc:&lt;br /&gt;<br />&lt;input type=&quot;text&quot; name=&quot;rff&quot; id=&quot;rff&quot; /&gt;&lt;br /&gt;<br />Telefono:&lt;br /&gt;<br />&lt;input type=&quot;text&quot; name=&quot;tel&quot; id=&quot;tel&quot; /&gt;&lt;br /&gt;<br /><br />&lt;/form&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br />busca_emple1.php<br />&lt;?<br />require (&quot;conecta.php&quot;);<br /> <br />$id = $_POST['idclte'];<br />$sqlcve = mysqli_query(&quot;Select * From cliente Where id_clte='$id'&quot;);<br /><br />$paso = mysqli_fetch_object($sqlcve);<br />$dato = $paso-&gt;direccion.&quot;/&quot;.$paso-&gt;rfc.&quot;/&quot;.$paso-&gt;telefono;<br /><br />echo $dato;<br />?&gt;<br /><br />GRACIAS<p><a href="http://foros.cristalab.com/auto-llenado-de-input-t124455/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Fri, 20 Dec 2019 17:15:47</pubDate>
	    </item>
	    <item>
    	    <title>Conectar a Whatsapp usando api facebook</title>
        	<link>http://foros.cristalab.com/conectar-a-whatsapp-usando-api-facebook-t124444/</link>
			<guid>http://foros.cristalab.com/conectar-a-whatsapp-usando-api-facebook-t124444/</guid>
	        <description><![CDATA[ Hola, buenas tardes<br />
<br />
Necesito que me ayuden a conectarme a whatsapp usando la api de facebook, que haciendo click en el botón de iniciar sesión con facebook me permita unirme a un grupo de whtasapp<br /><br />
Espero sus comentario de como hacer esto usando la api de facebook.<br /><br />
Gracias... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola, buenas tardes<br /><br />Necesito que me ayuden a conectarme a whatsapp usando la api de facebook, que haciendo click en el botón de iniciar sesión con facebook me permita unirme a un grupo de whtasapp<br /><br /><br />Espero sus comentario de como hacer esto usando la api de facebook.<br /><br /><br />Gracias<p><a href="http://foros.cristalab.com/conectar-a-whatsapp-usando-api-facebook-t124444/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Thu, 19 Dec 2019 19:40:54</pubDate>
	    </item>
	    <item>
    	    <title>vistas inexistentes</title>
        	<link>http://foros.cristalab.com/vistas-inexistentes-t124259/</link>
			<guid>http://foros.cristalab.com/vistas-inexistentes-t124259/</guid>
	        <description><![CDATA[ Hola gente,<br />
les comento mi problema, estoy notando que cuando tiro un SHOW TABLES FULL me estan apareciendo una serie de vistas que no existen y no las puedo borrar porque cuando tiro un drop me dice que no existen. El problema se me ocasiona cuando programo un backup con IPERIUS BACKUP me aborta el backup porque no e... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola gente,<br />les comento mi problema, estoy notando que cuando tiro un SHOW TABLES FULL me estan apareciendo una serie de vistas que no existen y no las puedo borrar porque cuando tiro un drop me dice que no existen. El problema se me ocasiona cuando programo un backup con IPERIUS BACKUP me aborta el backup porque no encuentra esas vistas. Alguna idea de como borrarlas o de lo que me esta asando????<p><a href="http://foros.cristalab.com/vistas-inexistentes-t124259/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sun, 08 Dec 2019 17:39:42</pubDate>
	    </item>
	    <item>
    	    <title>ayuda if</title>
        	<link>http://foros.cristalab.com/ayuda-if-t124139/</link>
			<guid>http://foros.cristalab.com/ayuda-if-t124139/</guid>
	        <description><![CDATA[ como	Validar que las estaturas estén en un rango de 100 y 200 cm, si esto no sucede, se envía mensaje de “Favor de insertar datos correctos”... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ como	Validar que las estaturas estén en un rango de 100 y 200 cm, si esto no sucede, se envía mensaje de “Favor de insertar datos correctos”<p><a href="http://foros.cristalab.com/ayuda-if-t124139/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Mon, 02 Dec 2019 22:45:13</pubDate>
	    </item>
	    <item>
    	    <title>Duda &quot;session_register&quot; Programa Tienda Online</title>
        	<link>http://foros.cristalab.com/duda-session-register-programa-tienda-online-t124138/</link>
			<guid>http://foros.cristalab.com/duda-session-register-programa-tienda-online-t124138/</guid>
	        <description><![CDATA[ Hola:<br />
<br />
Tengo un Programa de una "Tienda Online". <br />
<br />
El Programa se compone de 3 partes:<br />
<br />
- formulario.php<br />
<br />
- confirmar.php<br />
<br />
- productos.php<br />
<br />
Pues bien, el problema-duda que tengo es con esta línea del Fichero "productos.php":<br />
<br />
session_register('pedido'); <br />
<br />
Si la pongo me apare... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola:<br /><br />Tengo un Programa de una &quot;Tienda Online&quot;. <br /><br />El Programa se compone de 3 partes:<br /><br />- formulario.php<br /><br />- confirmar.php<br /><br />- productos.php<br /><br />Pues bien, el problema-duda que tengo es con esta línea del Fichero &quot;productos.php&quot;:<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">session_register&#40;'pedido'&#41;; </pre><br /><br />Si la pongo me aparece el error: <br /><br />Fatal error: Uncaught Error: Call to undefined function session_register() in T:\XAMPP\htdocs\MIS-EJERCICIOS\TIENDA\productos.php:11 Stack trace: #0 {main} thrown in T:\XAMPP\htdocs\MIS-EJERCICIOS\TIENDA\productos.php on line 11<br /><br />¿Alguna idea?<br /><br />Os pongo debajo todo el Código para que quede más claro.<br /><br />Gracias &amp; Saludetes. <img src="/foros/images/smiles/icon_wink.gif" alt=";-)" border="0" /><br /><br /><br /><span style="text-decoration: underline"><strong>FORMULARIO.PHP</strong></span><br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">&lt;?php

&nbsp; &nbsp;session_start&#40;&#41;;

&nbsp; &nbsp;session_destroy&#40;&#41;;

?&gt;


&lt;html&gt;


&nbsp; &nbsp;&nbsp; &nbsp;&lt;head&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&lt;/head&gt;



&nbsp; &nbsp;&nbsp; &nbsp;&lt;body&gt;
&nbsp; &nbsp;&nbsp; &nbsp;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;h1&gt;Bienvenido a la tienda&lt;/h1&gt;
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;form action=&quot;productos.php&quot; method=&quot;post&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Ingrese su nombre &#58; &lt;input name=&quot;nombre&quot; type=&quot;text&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input name=&quot;ingresar&quot; type=&quot;submit&quot; value=&quot;ingresar&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/form&gt;
&nbsp; &nbsp;&nbsp; &nbsp;

&nbsp; &nbsp;&nbsp; &nbsp;&lt;/body&gt;



&lt;/html&gt;</pre><br /><br /><br /><br /><strong><span style="text-decoration: underline">PRODUCTOS.PHP</span></strong><br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">?php 
&nbsp; &nbsp;
&nbsp; &nbsp;session_start&#40;&#41;; //Inicio sesion 

&nbsp; &nbsp;&nbsp; &nbsp;if &#40;isset&#40;$_POST&#91;'nombre'&#93;&#41;&#41;
&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$nombre = $_POST&#91;'nombre'&#93;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$_SESSION&#91;'usuario'&#93; = $nombre;&nbsp; &nbsp;&nbsp; &nbsp;//Guardo el nombre del usuario en sesion 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;session_register&#40;'pedido'&#41;; 

&nbsp; &nbsp;&nbsp; &nbsp;&#125;

&nbsp; &nbsp;&nbsp; &nbsp;if &#40;isset&#40;$_POST&#91;'agregar'&#93;&#41;&#41;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//Si se envió el primer formulario 
&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$claves = array_keys&#40;$_POST&#41;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$producto = $claves&#91;1&#93;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;!is_array&#40;$_SESSION&#91;'pedido'&#93;&#41;&#41; //Si no es un array 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$_SESSION&#91;'pedido'&#93; = array&#40;&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if&#40;array_key_exists&#40;&quot;$producto&quot;, $_SESSION&#91;'pedido'&#93;&#41;&#41;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$cantidad = $_SESSION&#91;'pedido'&#93;&#91;&quot;$producto&quot;&#93;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$_SESSION&#91;'pedido'&#93;&#91;&quot;$producto&quot;&#93; = ++$cantidad; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;else 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$_SESSION&#91;'pedido'&#93;&#91;&quot;$producto&quot;&#93; = 1; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125; 
&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;if&#40;isset&#40;$_GET&#91;'quitar'&#93;&#41;&#41;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//Si se envió el segundo formulario 
&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$claves = array_keys&#40;$_GET&#41;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$producto = $claves&#91;1&#93;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;unset&#40;$_SESSION&#91;'pedido'&#93;&#91;$producto&#93;&#41;; //Eliminar la posicion del arreglo 
&nbsp; &nbsp;&nbsp; &nbsp;&#125; 
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;Bienvenido &#58; &quot;.$_SESSION&#91;'usuario'&#93;;

?&gt; 



&lt;html&gt; 

&nbsp; &nbsp;&lt;head&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt; 
&nbsp; &nbsp;&lt;/head&gt; 

&nbsp; &nbsp;&lt;body&gt; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;form action=&quot;productos.php&quot; method=&quot;post&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;agregar&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;table border=&quot;1&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td width=&quot;150&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;TV&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;31&quot;&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;1500000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;TV&quot; id=&quot;button&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td width=&quot;150&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;DVD&lt;/b&gt;&lt;br&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;Negro&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;200000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;DVD&quot; id=&quot;button2&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td width=&quot;150&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;MP4&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;4GB&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;150000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;MP4&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;Laptop&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;12&quot;&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;1500000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;Laptop&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;MP3&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;2GB&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;100000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;MP3&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;Camara&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;12Mpx&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;250000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;Camara&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;Celular&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;Negro&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;200000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;Celular&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;PSP&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;Gris&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;500000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;PSP&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Producto&#58; &lt;b&gt;Impresora&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Descripcion&#58; &lt;b&gt;Multifuncional&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Precio&#58; &lt;b&gt;300000&lt;/b&gt;&lt;br&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;Impresora&quot; id=&quot;button3&quot; value=&quot;Anadir al carrito&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/table&gt; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/form&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;form action=&quot;productos.php&quot; method=&quot;get&quot;&gt; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;h1&gt;En el carrito de compras tiene los siguientes productos&lt;/h1&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;quitar&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;?php 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;!empty&#40;$_SESSION&#91;'pedido'&#93;&#41;&#41;&nbsp; &nbsp;&nbsp; &nbsp;//Si hay productos en el carrito
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;foreach &#40;$_SESSION&#91;'pedido'&#93;&nbsp; &nbsp;as&nbsp; &nbsp;$prod =&gt; $unidades&#41; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;$unidades unidades del producto $prod&quot;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;&lt;input type='Submit' name='$prod' value='Quitar'&gt;&lt;br&gt;&quot;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;?&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/form&gt; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;form action=&quot;confirmar.php&quot; method=&quot;post&quot;&gt; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;input type='Submit' name='Comprar' value=&quot;Confirmar compra&quot;&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/form&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;

&nbsp; &nbsp;&lt;/body&gt;

&lt;/html&gt;</pre><br /><br /><br /><strong><span style="text-decoration: underline">CONFIRMAR.PHP</span></strong>[<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">&lt;?php 


&nbsp; &nbsp;&nbsp; &nbsp;session_start&#40;&#41;; 

&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;&lt;h1 align='center'&gt;FELICIDADES&lt;/h1&gt; &lt;h2 align='center'&gt;acaba de comprar&lt;/h2&gt;&quot;; 
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;foreach &#40;$_SESSION&#91;'pedido'&#93;&nbsp; &nbsp; as&nbsp; &nbsp;$prod =&gt; $unidades&#41; 
&nbsp; &nbsp;&nbsp; &nbsp;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;&lt;p align='center'&gt;$unidades $prod&lt;/p&gt;&quot;; 

&nbsp; &nbsp;&nbsp; &nbsp;&#125; 


?&gt;



&lt;h2 align='center'&gt;Gracias por su compra&lt;/h2&gt; 


&lt;h2&gt;Vuelva pronto&lt;/h2&gt; 


&lt;a href=&quot;formulario.php&quot;&gt;TERMINAR&lt;/a&gt;</pre><p><a href="http://foros.cristalab.com/duda-session-register-programa-tienda-online-t124138/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Mon, 02 Dec 2019 14:49:01</pubDate>
	    </item>
	    <item>
    	    <title>como inicializar variable</title>
        	<link>http://foros.cristalab.com/como-inicializar-variable-t124056/</link>
			<guid>http://foros.cristalab.com/como-inicializar-variable-t124056/</guid>
	        <description><![CDATA[ Saludos , buenos días , por fa si alguien puede ayudarme :<br />
<br />
tengo un desarrollo en visual studio donde se crea una variable con el fin de enviarla a una función y esa función le regresa datos (tipo ouput)<br />
<br />
Dim valor(2000) As Byte<br />
<br />
como la creo en PHP?<br />
<br />
muchas gracias por su ayuda.... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Saludos , buenos días , por fa si alguien puede ayudarme :<br /><br />tengo un desarrollo en visual studio donde se crea una variable con el fin de enviarla a una función y esa función le regresa datos (tipo ouput)<br /><br />Dim valor(2000) As Byte<br /><br />como la creo en PHP?<br /><br />muchas gracias por su ayuda.<p><a href="http://foros.cristalab.com/como-inicializar-variable-t124056/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Wed, 27 Nov 2019 10:18:13</pubDate>
	    </item>
	    <item>
    	    <title>mi codigo php no actualiza datos en BDD</title>
        	<link>http://foros.cristalab.com/mi-codigo-php-no-actualiza-datos-en-bdd-t123967/</link>
			<guid>http://foros.cristalab.com/mi-codigo-php-no-actualiza-datos-en-bdd-t123967/</guid>
	        <description><![CDATA[ mi problema es que cuando le doy a actualizar no lo hace porque tengo que actualizar datos en una tabla en la que hay una clave foránea y previamente debo comprobar si todos los datos existen.<br />
os paso el código y agradecería una aclaración de cómo hacerlo<br />
gracias de antemano<br />
<?php<br />
include('conectar.php');<br />
//$dw... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  mi problema es que cuando le doy a actualizar no lo hace porque tengo que actualizar datos en una tabla en la que hay una clave foránea y previamente debo comprobar si todos los datos existen.<br />os paso el código y agradecería una aclaración de cómo hacerlo<br />gracias de antemano<br />&lt;?php<br />include('conectar.php');<br />//$dwes = new PDO('mysql:host=localhost;dbname=ies', 'root', '');<br /><br />/* $fila = $result-&gt;fetch();<br />$titulo= $fila['lib_titulo'];<br />$genero= $fila['lib_genero'];<br />$autor=$fila['aut_nombre'];*/<br />$libro=$_POST['titulo'];<br />$genero=$_POST['genero'];<br />$autor=$_POST['autor'];<br /><br />$registros = $dwes-&gt;exec(&quot;update libros set lib_titulo='$titulo',lib_genero='$genero',lib_autor='$autor' where libros.lib_autor=autores.aut_id and lib_isbn='$id'&quot;);<br />print &quot;&lt;p&gt;Se han actualizado $registros registros.&lt;/p&gt;&quot;;<br />header(&quot;Location:index.php&quot;);<br /><br />?&gt;<p><a href="http://foros.cristalab.com/mi-codigo-php-no-actualiza-datos-en-bdd-t123967/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sat, 23 Nov 2019 09:54:14</pubDate>
	    </item>
	    <item>
    	    <title>Header llamado con &quot;include&quot; no funciona</title>
        	<link>http://foros.cristalab.com/header-llamado-con-include-no-funciona-t123865/</link>
			<guid>http://foros.cristalab.com/header-llamado-con-include-no-funciona-t123865/</guid>
	        <description><![CDATA[ Hola!<br />
<br />
les comento, estoy usando una plantilla desarrollada con bootstrap. Seccione el header y el footer. Todos los archivos los he guardado con extensión php. Inserté en el index los archivos seccionados con "include" y todo se muestra perfectamente, ya que todo se encuentra en la carpeta raíz. <br />
El probl... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola!<br /><br />les comento, estoy usando una plantilla desarrollada con bootstrap. Seccione el header y el footer. Todos los archivos los he guardado con extensión php. Inserté en el index los archivos seccionados con &quot;include&quot; y todo se muestra perfectamente, ya que todo se encuentra en la carpeta raíz. <br />El problema aparece cuando utilizo &quot;include&quot; en un archivo de una subcarpeta porque no muestra el header.  <br />Estoy utilizando sublime text3, filezilla para subir los archivos al servidor (hosting económico para pruebas).<br />He probado varias opciones pero no encuentro el error o la forma correcta de llamar al archivo, por favor ayuda.<br />El código que usé es  &lt;? include (&quot;../header.php&quot;);?&gt;  pero no funciona; usé la misma ruta para footer pero este SÍ que funciona &lt;? include (&quot;../footer.php&quot;); ?&gt;<p><a href="http://foros.cristalab.com/header-llamado-con-include-no-funciona-t123865/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sun, 17 Nov 2019 00:47:54</pubDate>
	    </item>
	    <item>
    	    <title>Asignar valor a variable</title>
        	<link>http://foros.cristalab.com/asignar-valor-a-variable-t123777/</link>
			<guid>http://foros.cristalab.com/asignar-valor-a-variable-t123777/</guid>
	        <description><![CDATA[ Hola estoy haciendo una practica para control de ventas y cuando ejecuto la venta me sale este error<br />
Call to a member function fetch() on a non-object<br />
<br />
Despues de insertar registro, tengo una consulta cuyo valor me da 17 y ese valor lo quiero asignar a un campo de mi tabla, sin embargo me da error<br />
<br />
$query = $base_... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola estoy haciendo una practica para control de ventas y cuando ejecuto la venta me sale este error<br />Call to a member function fetch() on a non-object<br /><br />Despues de insertar registro, tengo una consulta cuyo valor me da 17 y ese valor lo quiero asignar a un campo de mi tabla, sin embargo me da error<br /><br />$query = $base_de_datos-&gt;prepare(&quot;INSERT INTO ventas(fecha, total) VALUES (?, ?);&quot;);<br /><br />$query-&gt;execute($query);<br /><br />$query2 = (&quot;SELECT id FROM ventas ORDER BY id DESC LIMIT 1;&quot;);<br /><br />$query2-&gt;execute($query2);<br /><br />$resultado = $query2-&gt;fetch(PDO::FETCH_OBJ);<br /><br />$id_venta = $resultado === false ? 1 : $resultado-&gt;id;<br /><br />// tomar el id y asignárselo al campo id_venta<br /><br />$sentencia = (&quot;INSERT INTO productos_vendidos(id_producto, id_venta, cantidad) VALUES (?, ?, ?);&quot;);<p><a href="http://foros.cristalab.com/asignar-valor-a-variable-t123777/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Tue, 12 Nov 2019 07:55:22</pubDate>
	    </item>
	    <item>
    	    <title>PHP7 y FireBird 3</title>
        	<link>http://foros.cristalab.com/php7-y-firebird-3-t123685/</link>
			<guid>http://foros.cristalab.com/php7-y-firebird-3-t123685/</guid>
	        <description><![CDATA[ Buenas tardes, tengo un problema; necesito conectarme una base de datos de firebird pero me arroja el siguiente error:<br />
<br />
Warning: fbird_connect(): Unable to complete network request to host &quot;localhost&quot;. <br />
<br />
Se que el servidor esta funcionando ya que estoy conectado desde el FlameRobin y puedo visuali... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Buenas tardes, tengo un problema; necesito conectarme una base de datos de firebird pero me arroja el siguiente error:<br /><br />Warning: fbird_connect(): Unable to complete network request to host &amp;quot;localhost&amp;quot;. <br /><br />Se que el servidor esta funcionando ya que estoy conectado desde el FlameRobin y puedo visualizar la DB.<br />Comento que estoy trabajando todo desde localhost, servidor web y firebird.<br />Servidor Linux Fedora.<br /><br />Alguien que haya trabajado antes y pueda ayudarme, talvez deberia de realizar alguna configuracion de permisos, al apache, no se; se los agradeceria.<br /><br />Saludos.<p><a href="http://foros.cristalab.com/php7-y-firebird-3-t123685/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Wed, 06 Nov 2019 10:03:37</pubDate>
	    </item>
	    <item>
    	    <title>Problemas al instalar Mysql 5.6 en windows 10</title>
        	<link>http://foros.cristalab.com/problemas-al-instalar-mysql-5.6-en-windows-10-t123618/</link>
			<guid>http://foros.cristalab.com/problemas-al-instalar-mysql-5.6-en-windows-10-t123618/</guid>
	        <description><![CDATA[ Hola a todos,<br />
<br />
Tengo un problema al instalar Mysql 5.6 en windwos 10, me aparece el siguiente mensaje:<br />
<br />
Error:<br />
<br />
        an error was encountered loading catalog product<br />
<br />
Alguien podria ayudarme para corregir este error?<br />
<br />
de antemano, muchas gracias...... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola a todos,<br /><br />Tengo un problema al instalar Mysql 5.6 en windwos 10, me aparece el siguiente mensaje:<br /><br />Error:<br /><br />        an error was encountered loading catalog product<br /><br />Alguien podria ayudarme para corregir este error?<br /><br />de antemano, muchas gracias...<p><a href="http://foros.cristalab.com/problemas-al-instalar-mysql-5.6-en-windows-10-t123618/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sat, 02 Nov 2019 17:23:58</pubDate>
	    </item>
	    <item>
    	    <title>Como guardar en base de datos de cada usuario laravel??</title>
        	<link>http://foros.cristalab.com/como-guardar-en-base-de-datos-de-cada-usuario-laravel-t123479/</link>
			<guid>http://foros.cristalab.com/como-guardar-en-base-de-datos-de-cada-usuario-laravel-t123479/</guid>
	        <description><![CDATA[ Estoy desarrollando este proyecto en ambiente web pensado para facturas a cada cliente. Me explico, trabajo en una oficina de informatica, brindan servicios web, y a su vez quieren brindar el servicio de un sistema web para facturar, entonces los suscritos tendran el sistema web a su disposicion para generar facturas y... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Estoy desarrollando este proyecto en ambiente web pensado para facturas a cada cliente. Me explico, trabajo en una oficina de informatica, brindan servicios web, y a su vez quieren brindar el servicio de un sistema web para facturar, entonces los suscritos tendran el sistema web a su disposicion para generar facturas y demas. De alli parte la idea de que cada suscriptor debe tener una base de datos. para guardar cada uno de sus registros<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">
 'mysql' =&gt; &#91;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'driver' =&gt; 'mysql',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'host' =&gt; env&#40;'DB_HOST', '127.0.0.1'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'port' =&gt; env&#40;'DB_PORT', '3306'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'database' =&gt; env&#40;'DB_DATABASE', 'forge'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'username' =&gt; env&#40;'DB_USERNAME', 'forge'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'password' =&gt; env&#40;'DB_PASSWORD', ''&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'unix_socket' =&gt; env&#40;'DB_SOCKET', ''&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'charset' =&gt; 'utf8mb4',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'collation' =&gt; 'utf8mb4_unicode_ci',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'prefix' =&gt; '',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'prefix_indexes' =&gt; true,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'strict' =&gt; true,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'engine' =&gt; null,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'options' =&gt; extension_loaded&#40;'pdo_mysql'&#41; ? array_filter&#40;&#91;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PDO&#58;&#58;MYSQL_ATTR_SSL_CA =&gt; env&#40;'MYSQL_ATTR_SSL_CA'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#93;&#41; &#58; &#91;&#93;,
&nbsp; &nbsp; &nbsp; &nbsp; &#93;,

&nbsp; &nbsp; &nbsp; &nbsp; 'functions' =&gt; &#91;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'driver' =&gt; 'mysql',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'host' =&gt; env&#40;'FUNCTIONS_HOST', '127.0.0.1'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'port' =&gt; env&#40;'FUNCTIONS_PORT', '3306'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'database' =&gt; '',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'username' =&gt; env&#40;'DB_USERNAME', 'forge'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'password' =&gt; env&#40;'DB_PASSWORD', ''&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'unix_socket' =&gt; env&#40;'DB_SOCKET', ''&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'charset' =&gt; 'utf8mb4',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'collation' =&gt; 'utf8mb4_unicode_ci',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'prefix' =&gt; '',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'prefix_indexes' =&gt; true,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'strict' =&gt; true,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'engine' =&gt; null,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'options' =&gt; extension_loaded&#40;'pdo_mysql'&#41; ? array_filter&#40;&#91;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PDO&#58;&#58;MYSQL_ATTR_SSL_CA =&gt; env&#40;'MYSQL_ATTR_SSL_CA'&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#93;&#41; &#58; &#91;&#93;,
&nbsp; &nbsp; &nbsp; &nbsp; &#93;,
</pre><br />no he logrado realizar la carga de nombre de base de datos dependiendo el usuario. en php lo probe de esta manera <br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">$bd = &quot;bacoopco_&quot;.$_SESSION&#91;&quot;bbdduser&quot;&#93;;
$pass = &quot;&quot;;
$user=&quot;root&quot;;

&nbsp; &nbsp; $mysqli = new mysqli&#40;'localhost', $user, $pass, $bd&#41;;

&nbsp; &nbsp; if&#40;$mysqli-&gt;connect_error&#41;&#123;

&nbsp; &nbsp; &nbsp; &nbsp; die&#40;'Error en la conexion' . $mysqli-&gt;connect_error&#41;;

&nbsp; &nbsp; &#125;</pre><br /><br />pero en laravel no he logrado hacer algo asi.<p><a href="http://foros.cristalab.com/como-guardar-en-base-de-datos-de-cada-usuario-laravel-t123479/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Thu, 24 Oct 2019 14:21:30</pubDate>
	    </item>
	    <item>
    	    <title>Enviar nombre de base de datos por POST</title>
        	<link>http://foros.cristalab.com/enviar-nombre-de-base-de-datos-por-post-t123445/</link>
			<guid>http://foros.cristalab.com/enviar-nombre-de-base-de-datos-por-post-t123445/</guid>
	        <description><![CDATA[ Buenos dias a todos. Tengo una duda ya que estoy intentando hacer algo que no se si es posible, aunque aun no entiendo porque no funciona.<br />
Tengo una pagina login.html donde ingreso IDequipo y Password. Envio mediante POST estos datos a login.php donde se requiere un archivo llamado database donde estan los valores par... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Buenos dias a todos. Tengo una duda ya que estoy intentando hacer algo que no se si es posible, aunque aun no entiendo porque no funciona.<br />Tengo una pagina login.html donde ingreso IDequipo y Password. Envio mediante POST estos datos a login.php donde se requiere un archivo llamado database donde estan los valores para conecarse a la base de datos mysql y validar al usuario.<br />Este es el login:<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">session_start&#40;&#41;;
&nbsp; if &#40;isset&#40;$_SESSION&#91;'user_id'&#93;&#41;&#41; &#123;
&nbsp; &nbsp; header&#40;'Location&#58; principal'&#41;;
&nbsp; &#125;
?&gt;
 
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&nbsp; &lt;head&gt;
&nbsp; &nbsp; &lt;meta charset=&quot;utf-8&quot;&gt;
&nbsp; &nbsp; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0&quot;&gt;
&nbsp; &nbsp; &lt;title&gt;Inicia Sesion&lt;/title&gt;
&nbsp; &nbsp; &lt;link href=&quot;https&#58;//fonts.googleapis.com/css?family=Roboto&quot; rel=&quot;stylesheet&quot;&gt;
&nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; href=&quot;assets/css/style2.css&quot;&gt;
&nbsp; &lt;/head&gt;
&nbsp; &lt;body&gt;
 
&nbsp; &nbsp; &lt;form action=&quot;login2&quot; method=&quot;POST&quot; &gt;
&nbsp; &nbsp; &nbsp; &lt;input name=&quot;idequipo&quot; type=&quot;text&quot; placeholder=&quot;ID Equipo&quot;&gt;
&nbsp; &nbsp; &nbsp; &lt;input name=&quot;password&quot; type=&quot;password&quot; placeholder=&quot;Ingresa Contrasena&quot;&gt;
&nbsp; &nbsp; &nbsp; &lt;input type=&quot;checkbox&quot; name=&quot;recordar&quot; value=&quot;yes&quot;&gt; &lt;a&gt;Recordar contrase&amp;ntilde;a&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; value=&quot;Ingresar&quot;&gt;
&nbsp; &nbsp; &lt;/form&gt;
&nbsp; &lt;/body&gt;
&lt;/html&gt;</pre><br /><br /><br />La cuestion es la siguiente, en el login, el campo IDequipo representa al nombre de la base de datos y al nombre de usuario de esa base de datos (es un sistema interno por lo cual no me preocupa la seguridad contra inyeccion y demas).<br />Yo quiero recibir por POST el 'idequipo' y asignarlo a la variable $username y $database, que de hecho, si hago un echo $username o $database veo que recibo bien el nombre (que en realidad es una concatenacion de un nombre fijo + el 'idequipo'). La concatenacion la hago $database = 'nombrebase'.$variable; donde variable es $variable= $_POST['idequipo'];<br />Estos datos los recibo bien, porque lo compurebo con un echo, pero al momento de asignarlo a la variable de conexion, deja de funcionar la misma.<br /><br />Este es login2.php donde recibe los valores del login y requiere el database.<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">$idequipo = $_POST&#91;'idequipo'&#93;;
&nbsp; session_start&#40;&#41;;
 
&nbsp; if &#40;isset&#40;$_SESSION&#91;'user_id'&#93;&#41;&#41; &#123;
&nbsp; &nbsp; header&#40;'Location&#58; principal'&#41;;
&nbsp; &#125;
&nbsp; &nbsp;require 'db/database.php';
 
&nbsp; if &#40;!empty&#40;$_POST&#91;'idequipo'&#93;&#41; &amp;&amp; !empty&#40;$_POST&#91;'password'&#93;&#41;&#41; &#123;
&nbsp; &nbsp; $records = $conn-&gt;prepare&#40;'SELECT id, idequipo, password FROM users WHERE idequipo = &#58;idequipo'&#41;;
&nbsp; &nbsp; $records-&gt;bindParam&#40;'&#58;idequipo', $_POST&#91;'idequipo'&#93;&#41;;
&nbsp; &nbsp; $records-&gt;execute&#40;&#41;;
&nbsp; &nbsp; $results = $records-&gt;fetch&#40;PDO&#58;&#58;FETCH_ASSOC&#41;;
 
&nbsp; &nbsp; $message = '';
 
//echo &quot;chequea usuario&quot;;
&nbsp; &nbsp; if &#40;count&#40;$results&#41; &gt; 0 &amp;&amp; password_verify&#40;$_POST&#91;'password'&#93;, $results&#91;'password'&#93;&#41;&#41; &#123;
&nbsp; &nbsp; &nbsp; $_SESSION&#91;'user_id'&#93; = $results&#91;'id'&#93;;
 
&nbsp; &nbsp; &nbsp; header&#40;&quot;Location&#58; principal&quot;&#41;;
&nbsp; &nbsp; &#125; else &#123;
&nbsp; &nbsp; &nbsp; $message = 'Id Equipo o Contrasena incorrecta!';
&nbsp; &nbsp; &#125;
&nbsp; &#125;</pre><br /><br />Este es el database:<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">$idequipo = $_POST&#91;'idequipo'&#93;;
 
$server = 'localhost';
$database = 'base'.$idequipo;
$username = 'base'.$idequipo;
$password = 'pass';
 
try &#123;
&nbsp; $conn = new PDO&#40;&quot;mysql&#58;host=$server;dbname=$database&quot;, $username, $password&#41;;
&#125; catch &#40;PDOException $e&#41; &#123;
&nbsp; die&#40;'Error en la conexión - Contacte con soporte&nbsp; '.$e &#41;;
&#125;</pre><br /><br />Tuve que dividir el login en 2 (login.php y login2.php donde hace la logica de bd) porque de otra forma, no me cargaba le pagina sin antes conectarse a la base de datos.<br />Si ingreso el nombre de usuario y el nombre de la base de datos de forma manual, funciona a la perfeccion, incluso si en vez de dejar como esta $idequipo = $_POST['idequipo'];, pongo $idequipo='idequipo'; funciona bien tambien.<br />Si inmediatamente debajo de $password, ingreso echo $database; me muestra perfectamente el nombre con el que deberia ingresar, pero no conecta, y el catch da el siguiente error:<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">PDOException&#58; SQLSTATE&#91;HY000&#93; &#91;1045&#93; Access denied for user 'nombrebase'@'172.17.110.255' &#40;using password&#58; YES&#41; in /home/xxxxx/public_html/xxxxx/database.php&#58;11 Stack trace&#58; #0 /home/xxxxx/public_html/xxxxx/db/database.php&#40;11&#41;&#58; PDO-&gt;__construct&#40;'mysql&#58;host=loca...', 'nombrebase', 'xxxxxx'&#41; #1 /home/c1380069/public_html/xxxxx/principal.php&#40;3&#41;&#58; require&#40;'/home/xxxxxx/...'&#41; #2 &#123;main&#125;</pre><p><a href="http://foros.cristalab.com/enviar-nombre-de-base-de-datos-por-post-t123445/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Wed, 23 Oct 2019 06:12:57</pubDate>
	    </item>
	    <item>
    	    <title>Notice: Use of undefined constant var_usuario – assumed</title>
        	<link>http://foros.cristalab.com/notice-use-of-undefined-constant-var-usuario-assumed-t123371/</link>
			<guid>http://foros.cristalab.com/notice-use-of-undefined-constant-var-usuario-assumed-t123371/</guid>
	        <description><![CDATA[ Estoy realizando un sitio.<br />
En la notebook tengo instalado xampp-win32-5.5.19-0-VC11 y allí no tengo problemas.<br />
Compré una PC y para no tener problemas con el PHP también allí instalé la misma versión de xampp.<br />
El tema es que en la PC luego de realizar el login al sitio que estoy realizando se muestran varios errores... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Estoy realizando un sitio.<br />En la notebook tengo instalado <strong>xampp-win32-5.5.19-0-VC11</strong> y allí no tengo problemas.<br />Compré una PC y para no tener problemas con el PHP también allí instalé la misma versión de xampp.<br />El tema es que en la PC luego de realizar el login al sitio que estoy realizando se muestran varios errores <strong>Notice: Use of undefined constant var_usuario – assumed…</strong>, pero en la notebook estos errores no aparecen, o sea, accedo al sitio y no se visualizan estos errores.<br />Ejemplos de errores visualizados...:<br /><br /><em>Notice: Use of undefined constant var_usuario - assumed 'var_usuario' in C:\xampp\htdocs\crpper\administrador\index1.php on line 51<br /><br />Notice: Use of undefined constant var_tipousuario - assumed 'var_tipousuario' in C:\xampp\htdocs\crpper\administrador\index1.php on line 56<br /><br />Notice: Use of undefined constant cerrarsesion - assumed 'cerrarsesion' in C:\xampp\htdocs\crpper\administrador\index1.php on line 56<br /><br />Notice: Use of undefined constant codigo - assumed 'codigo' in C:\xampp\htdocs\crpper\administrador\index1.php on line 56<br /><br />Notice: Use of undefined constant codigo - assumed 'codigo' in C:\xampp\htdocs\crpper\administrador\index1.php on line 60<br /><br />Notice: Use of undefined constant var_tipousuario - assumed 'var_tipousuario' in C:\xampp\htdocs\crpper\administrador\index1.php on line 60</em><br /><br />Gracias por la ayuda.<br />Saludos.-<p><a href="http://foros.cristalab.com/notice-use-of-undefined-constant-var-usuario-assumed-t123371/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Wed, 16 Oct 2019 19:38:04</pubDate>
	    </item>
	    <item>
    	    <title>Buscando una buena forma de armar mi base de datos</title>
        	<link>http://foros.cristalab.com/buscando-una-buena-forma-de-armar-mi-base-de-datos-t123328/</link>
			<guid>http://foros.cristalab.com/buscando-una-buena-forma-de-armar-mi-base-de-datos-t123328/</guid>
	        <description><![CDATA[ Buenas tardes, soy nuevo con esto de MySql y necesito un poco de orientación...<br />
<br />
Estoy haciendo una pagina de musica en donde los temas a escuchar se dividen en décadas de esta manera...<br /><br />
<h1>Actual</h1> <--  (2019)<br />
...<br />
...<br />
<br />
<h1>2010</h1>     <-- ... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Buenas tardes, soy nuevo con esto de MySql y necesito un poco de orientación...<br /><br />Estoy haciendo una pagina de musica en donde los temas a escuchar se dividen en décadas de esta manera...<br /><br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">&lt;h1&gt;Actual&lt;/h1&gt; &lt;--&nbsp; &#40;2019&#41;
...
...

&lt;h1&gt;2010&lt;/h1&gt;&nbsp; &nbsp; &nbsp;&lt;--&nbsp; &#40;2018-2010&#41;
...
...

&lt;h1&gt;2000&lt;/h1&gt; 
...
...

&lt;h1&gt;1990&lt;/h1&gt; 
...
...

&lt;h1&gt;1980&lt;/h1&gt;
...
...
</pre><br />Tengo muchas dudas pero empezare por la primera, una tabla por cada década o todos los temas en una sola tabla y de ahí lo manejo con una columna y el año?<p><a href="http://foros.cristalab.com/buscando-una-buena-forma-de-armar-mi-base-de-datos-t123328/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sun, 13 Oct 2019 16:46:25</pubDate>
	    </item>
	    <item>
    	    <title>sumar columna mysql con php</title>
        	<link>http://foros.cristalab.com/sumar-columna-mysql-con-php-t123266/</link>
			<guid>http://foros.cristalab.com/sumar-columna-mysql-con-php-t123266/</guid>
	        <description><![CDATA[ Hola buenas tardes.<br />
<br />
Estoy revisando el foro y no doy con la solución, siempre me da error mysql.<br />
<br />
Tengo una db con nombre serviciosdiarios y bastantes columnas, entre ellas una que es el importe (totalefectivo) y otra fecha_ingreso.<br />
<br />
Quisiera que me sumara los importes de cierta fecha_ingreso, en esa fecha puede... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola buenas tardes.<br /><br />Estoy revisando el foro y no doy con la solución, siempre me da error mysql.<br /><br />Tengo una db con nombre serviciosdiarios y bastantes columnas, entre ellas una que es el importe (totalefectivo) y otra fecha_ingreso.<br /><br />Quisiera que me sumara los importes de cierta fecha_ingreso, en esa fecha puede haber 3, 4, 8 importes, no son siempre ni el mismo numero de ingresos ni la misma cantidad.<br /><br />No he podido individualizar los registros para sumarlos, pues no son siempre el mismo numero de registros y con GROUP BY tampoco soy capaz.<br /><br />Os pongo el código que utilizo por si me podeis decir donde tengo el error.<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;?php&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;include &#40;&quot;ctrl/configuracion.php&quot;&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;! $link = mysql_connect&#40;$server, $db_user, $db_pass&#41;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;No pudo conectare con mysql&quot;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;exit; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;! mysql_select_db &#40;$database, $link&#41;&#41; &#123;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;No se PUDO selecionar la base de Datos&quot; ;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;exit;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$sql = mysql_query&#40;&quot;SELECT SUM&#40;totalefectivo&#41; FROM $serviciosdiarios WHERE fecha_ingreso = $fecha_ingreso GROUP BY&#40;$fecha_ingreso&#41;&quot;&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$resultado = mysql_query &#40; $sql , $link &#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;! $resultado &#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;Error de MySQL&#58; &quot;; mysql_error &#40;&#41; ;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;exit;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while&#40;$row=mysql_fetch_assoc&#40;$resultado&#41;&#41;&#123;
 &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$total+=$row&#91;'totalefectivo'&#93;;
 &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo '$total';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mysql_free_result &#40; $resultado &#41;; &nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;?&gt;

</pre><br />Muchas gracias de antemano.<br /><br />Un saludo.<p><a href="http://foros.cristalab.com/sumar-columna-mysql-con-php-t123266/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Wed, 09 Oct 2019 12:41:36</pubDate>
	    </item>
	    <item>
    	    <title>¿Cómo eliminar datos eliminados de una tabla y guardalos en otra con p</title>
        	<link>http://foros.cristalab.com/como-eliminar-datos-eliminados-de-una-tabla-y-guardalos-en-otra-con-p-t123252/</link>
			<guid>http://foros.cristalab.com/como-eliminar-datos-eliminados-de-una-tabla-y-guardalos-en-otra-con-p-t123252/</guid>
	        <description><![CDATA[ Hola a todos,<br />
Soy nueva en este foro y también llevo poco programando con php, por eso os pido ayuda.Estoy trabajando con una base datos y php y me gustaría poder eliminar datos de una tabla y guardarlos en otra, de esta forma esos datos no los pierdo, porque los necesito, pero si que los quito de la vista del usuario... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola a todos,<br />Soy nueva en este foro y también llevo poco programando con php, por eso os pido ayuda.Estoy trabajando con una base datos y php y me gustaría poder eliminar datos de una tabla y guardarlos en otra, de esta forma esos datos no los pierdo, porque los necesito, pero si que los quito de la vista del usuario.<br /><br />Este es el código que muestra los datos en una tabla al usuario. Que puede eliminar y editar, pero cuando pincha en guardar, quisiera que esos datos se fuesen a otra tabla de la BBDD y se quitasen de esa tabla y por tanto de la vista del usuario. Espero que me podáis ayudar:<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;p&gt;Resultados &lt;?php echo $datos-&gt;num_rows; ?&gt;&lt;/p&gt;
&lt;div class=&quot;row table-responsive&quot;&gt;
&lt;table class=&quot;display&quot; id=&quot;mitabla&quot; border=&quot;1&quot;&nbsp; style=&quot;width&#58;100%&quot; &gt;

&lt;thead style='background-color&#58;#292929;'&gt;

&nbsp; &nbsp; &lt;th align=&quot;center&quot;&gt;&lt;font color=#FFFFFF&gt;Marcar&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;N&#186; Cliente&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Nombre completo&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Zona de Ventas&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Ramo Inicial&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Ramo Definitivo&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Tipo Contrato&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Fecha Env&#237;o&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Fecha Recepci&#243;n&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Contador &#40;Fechas&#41;&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Comentarios &lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Anexo Contrato&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Escalado Distrib.&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;&#37; Bonus Distrib.&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Factur Anual Distrib.&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Anotaciones Internas&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;left&quot;&gt;&lt;font color=#FFFFFF&gt;Anexo Interno&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;center&quot;&gt;&lt;font color=#FFFFFF&gt;Editar&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;center&quot;&gt;&lt;font color=#FFFFFF&gt;Borrar&lt;/th&gt;
&nbsp; &nbsp; &lt;th align=&quot;center&quot;&gt;&lt;font color=#FFFFFF&gt;Guardar&lt;/th&gt;

&lt;/thead&gt;

&lt;?php while&#40;$d= $datos-&gt;fetch_object&#40;&#41;&#41;&#58;?&gt;


&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;casilla&#91;&#93;&quot; value=&quot;&lt;?php echo $d-&gt;id_contrpen; ?&gt;&quot;class=&quot;check&quot;&gt;&lt;/td&gt;

&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;noCliente; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;nombreCliente;?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;zv; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;ramo; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;ramoDef; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;tipoContr ; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;right&quot;&gt;&lt;?php echo $d-&gt;fechaEnvio; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;right&quot;&gt;&lt;?php echo $d-&gt;fechaRecep; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;contador; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;comentarios; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;anexo; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;anexoDistrEscal; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;anexoDistrBonus; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;anexoDistrFact; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;anotaciones; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;?php echo $d-&gt;anexoInter; ?&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;&lt;a href=&quot;modificarContrPend.php?id_contrpen=&lt;?php echo $d-&gt; id_contrpen; ?&gt;&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-pencil&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;&lt;a href=&quot;#&quot; data-href=&quot;eliminarContrPend.php?id_contrpen=&lt;?php echo $d-&gt;id_contrpen; ?&gt;&quot; data-toggle=&quot;modal&quot; data-target=&quot;#confirm-delete&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-trash&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;&lt;a href=&quot;guardarContrPendBackup.php?id_contrpen=&lt;?php echo $d-&gt;id_contrpen; ?&gt;&quot; &gt;&lt;span class=&quot;glyphicon glyphicon-floppy-disk&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;

&lt;?php endwhile; ?&gt;
&nbsp; &nbsp; &lt;?php else&#58;?&gt;
&nbsp; &nbsp; &lt;h3&gt;No hay Datos&lt;/h3&gt;
&nbsp; &nbsp; &lt;?php endif; ?&gt;</pre><br /><br />He creado un Trigger que podría hacer el trabajo, pero no me lleva los datos a la otra tabla, crea el registro pero vacio. Esta programado para BFORE DELETE Este es el trigger:<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-sql">DROP TRIGGER IF EXISTS Contratos_Pendientes_Backup;CREATE DEFINER=cpses_djt2tjlsec@localhost TRIGGER Contratos_Pendientes_Backup BEFORE DELETE ON contratospendientes FOR EACH ROW INSERT INTO contratospendientesBackup &#40;id_contrpen, noCliente, nombreCliente, zv, ramo, ramoDef, tipoContr, fechaEnvio, fechaRecep, contador, comentarios, anexo, anexoDistrEscal, anexoDistrBonus, anexoDistrFact, anotaciones, anexoInter, created_at&#41; VALUES &#40;contratospendientes.noCliente, contratospendientes.nombreCliente, contratospendientes.zv, contratospendientes.ramo, contratospendientes.ramoDef, contratospendientes.tipoContr, contratospendientes.fechaEnvio, contratospendientes.fechaRecep, contratospendientes.contador, contratospendientes.comentarios, contratospendientes.anexo, contratospendientes.anexoDistrEscal, contratospendientes.anexoDistrBonus, contratospendientes.anexoDistrFact, contratospendientes.anotaciones, contratospendientes.anexoInter&#41;</pre><br /><br />Gracias de antemano a todos.<p><a href="http://foros.cristalab.com/como-eliminar-datos-eliminados-de-una-tabla-y-guardalos-en-otra-con-p-t123252/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Wed, 09 Oct 2019 01:53:28</pubDate>
	    </item>
	    <item>
    	    <title>Necesito crear un sistema de acceso o login a un website personal</title>
        	<link>http://foros.cristalab.com/necesito-crear-un-sistema-de-acceso-o-login-a-un-website-personal-t123246/</link>
			<guid>http://foros.cristalab.com/necesito-crear-un-sistema-de-acceso-o-login-a-un-website-personal-t123246/</guid>
	        <description><![CDATA[ Hola, buenas tardes, estoy haciendo una pagina web, ya tengo el formulario de registro y el login, es para el sistema de acceso o login a un website, ¿que sigue despues?;<br />
<br />
¿construir la base de datos?<br />
<br />
¿Gestionar la base de datos?<br />
<br />
¿Donde se guardan los datos de registro de los usuarios?.<br />
<br />
¿Como se conecta la b... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola, buenas tardes, estoy haciendo una pagina web, ya tengo el formulario de registro y el login, es para el sistema de acceso o login a un website, ¿que sigue despues?;<br /><br />¿construir la base de datos?<br /><br />¿Gestionar la base de datos?<br /><br />¿Donde se guardan los datos de registro de los usuarios?.<br /><br />¿Como se conecta la base de datos al login?<br /><br />¿Hay manera de hacer la base de datos visualmente sin tanto codigo.?<br /><br />¿Como se emula la entrada con login a una base de datos?<br /><br />¿Algun tutorial para hacer una base de datos o todo lo anterior de manera facil?<br /><br />¿Me pueder decir paso a paso, el sistema de acceso o login a un website? ¿y que es lo sucede dentro del servidor?<br /><br />¿Con que software o pagina web puedo ver los registros?<br /><br />¿Se pueden modificar o eliminar estos registros?<br /><br />Para que al momento del login poner el usuario y su contraseña,  y se puede entrar con una base de datos que se crea con el formulario de registro.<br /><br />a la espera de sus respuetas<br /><br />Roger<p><a href="http://foros.cristalab.com/necesito-crear-un-sistema-de-acceso-o-login-a-un-website-personal-t123246/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Tue, 08 Oct 2019 15:34:30</pubDate>
	    </item>
	    <item>
    	    <title>PHP - ¿Cómo hacer que CURL se ejecute desde un Bucle?</title>
        	<link>http://foros.cristalab.com/php-como-hacer-que-curl-se-ejecute-desde-un-bucle-t123182/</link>
			<guid>http://foros.cristalab.com/php-como-hacer-que-curl-se-ejecute-desde-un-bucle-t123182/</guid>
	        <description><![CDATA[ Hola,<br />
Necesito leer un fichero txt para insertar una linea a la vez en Servicio Web remoto.<br />
Yo logro exito solo cuando ejecuto la aplicacion con un solo dato.<br />
Pero se hago la lectura del fichero y intento insertar los datos , no pasa nada.<br />
Gracias por la ayuda.<br />
<br />
1 - Ejemplo de la aplicacion que se ejecuta  solo c... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola,<br />Necesito leer un fichero txt para insertar una linea a la vez en Servicio Web remoto.<br />Yo logro exito solo cuando ejecuto la aplicacion con un solo dato.<br />Pero se hago la lectura del fichero y intento insertar los datos , no pasa nada.<br />Gracias por la ayuda.<br /><br /><strong>1 - Ejemplo de la aplicacion que se ejecuta  solo con un dato.</strong><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;?php
set_time_limit&#40;0&#41;;

/* API URL */
$url = 'https&#58;..';
$header = array&#40;&quot;Authorization&#58; Basic Q09CUkFSUjp2UT..&quot;,&quot;Content-Type&#58; application/json&quot;&#41;;

/* Array Parameter Data */
$data = '&#123;&quot;cliente&quot;&#58;&quot;8609&quot;,&quot;acao&quot;&#58;&quot;858&quot;,&quot;motivo&quot;&#58;&quot;699&quot;,&quot;obs&quot;&#58;&quot;data-2019-09-20 php&quot;&#125;';

/* Init cURL resource */
$ch = curl_init&#40;$url&#41;;
/* pass encoded JSON string to the POST fields */
curl_setopt&#40;$ch, CURLOPT_POSTFIELDS, $data&#41;;

/* set the content type json */
curl_setopt&#40;$ch, CURLOPT_HTTPHEADER, $header&#41;;
/* set return type json */
curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, true&#41;;
/* execute request */
 $result = curl_exec&#40;$ch&#41;;
 echo $result.'&lt;br&gt;';&nbsp; 
/* close cURL resource */
curl_close&#40;$ch&#41;;
echo 'fim'.'&lt;br&gt;';
?&gt;</pre><br /><br /><strong><span style="color: blue">2 - Necesito arreglar ese codigo que no funciona</span></strong><br />2.1 - Fichero txt<br />'{&quot;cliente&quot;:&quot;8609&quot;,&quot;acao&quot;:&quot;858&quot;,&quot;motivo&quot;:&quot;699&quot;,&quot;obs&quot;:&quot;data-2019-09-20 php&quot;}'<br />'{&quot;cliente&quot;:&quot;8610&quot;,&quot;acao&quot;:&quot;858&quot;,&quot;motivo&quot;:&quot;699&quot;,&quot;obs&quot;:&quot;data-2019-09-20 php&quot;}'<br /><br />2.2 - Code PHP<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;?php
/* Envio de multiplas lineas datos&nbsp; */

set_time_limit&#40;0&#41;;

$dir = 'C&#58;/00cargas'; // directorio para lectura del fichero
$dir2= 'C&#58;/00cargasok/';

$dh = opendir&#40;$dir&#41;;
$arq = readdir&#40;$dh&#41;;

&nbsp; // bucle que para leer todos los ficheros
&nbsp; &nbsp;while &#40;false != &#40;$arq = readdir&#40;$dh&#41;&#41;&#41;&#123;
&nbsp; &nbsp;// evalua ficheros
&nbsp; &nbsp;&nbsp; &nbsp;$exten = substr&#40;$arq,strlen&#40;$arq&#41;-3,3&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$exten != &quot;&quot; &amp;&amp; $exten !=&quot;.&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;jpg&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;gif&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;bmp&quot;&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$cont_lin=0;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$linea=&quot;&quot;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$data=&quot;&quot;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* API URL */
&nbsp; &nbsp; &nbsp; $url = 'https&#58;...';
&nbsp; &nbsp; &nbsp; $header = array&#40;&quot;Authorization&#58; Basic Q09CUkFSUjp2UThYM....=&quot;,&quot;Content-Type&#58; application/json&quot;&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;// abrir fichero
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$arquivo = fopen&#40;$dir.&quot;/&quot;.$arq,&quot;r&quot;&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; // evalua se hay fichero para leer
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$arquivo&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while &#40;!feof &#40;$arquivo&#41;&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$linea = fgets&#40;$arquivo&#41;;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data =&nbsp; substr&#40;$linea,0,strlen&#40;$linea&#41;-2&#41;; // quita el '\r\n'

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; /* Init cURL resource */
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ch = curl_init&#40;$url&#41;;

&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* pass encoded JSON string to the POST fields */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_POSTFIELDS,$data&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; echo $data.'&lt;br&gt;';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* set the content type json */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_HTTPHEADER, $header&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* set return type json */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, true&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* execute request */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; $result = curl_exec&#40;$ch&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;curl_errno&#40;$ch&#41;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo 'Error&#58; ' . curl_error&#40;$ch&#41;.'&lt;br&gt;';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* close cURL resource */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_close&#40;$ch&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;fclose&#40;$arquivo&#41;;
&nbsp; &nbsp;&nbsp; &nbsp; &#125;// cierra el WHILE $arquivo
&nbsp; &nbsp;&nbsp; &#125;// cierra le&nbsp; WHILE exten
&nbsp; &#125;// cierra el&nbsp; WHILE readdir
?&gt;&lt;?php
/* Envio de multiplas lineas datos&nbsp; */

set_time_limit&#40;0&#41;;

$dir = 'C&#58;/00cargas'; // directorio para lectura del fichero
$dir2= 'C&#58;/00cargasok/';

$dh = opendir&#40;$dir&#41;;
$arq = readdir&#40;$dh&#41;;

&nbsp; // bucle que para leer todos los ficheros
&nbsp; &nbsp;while &#40;false != &#40;$arq = readdir&#40;$dh&#41;&#41;&#41;&#123;
&nbsp; &nbsp;// evalua ficheros
&nbsp; &nbsp;&nbsp; &nbsp;$exten = substr&#40;$arq,strlen&#40;$arq&#41;-3,3&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$exten != &quot;&quot; &amp;&amp; $exten !=&quot;.&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;jpg&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;gif&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;bmp&quot;&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$cont_lin=0;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$linea=&quot;&quot;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$data=&quot;&quot;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* API URL */
&nbsp; &nbsp; &nbsp; $url = 'https&#58;...';
&nbsp; &nbsp; &nbsp; $header = array&#40;&quot;Authorization&#58; Basic Q09CUkFSUjp2UThYM....=&quot;,&quot;Content-Type&#58; application/json&quot;&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;// abrir fichero
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$arquivo = fopen&#40;$dir.&quot;/&quot;.$arq,&quot;r&quot;&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; // evalua se hay fichero para leer
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$arquivo&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while &#40;!feof &#40;$arquivo&#41;&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$linea = fgets&#40;$arquivo&#41;;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data =&nbsp; substr&#40;$linea,0,strlen&#40;$linea&#41;-2&#41;; // quita el '\r\n'

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; /* Init cURL resource */
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ch = curl_init&#40;$url&#41;;

&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* pass encoded JSON string to the POST fields */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_POSTFIELDS,$data&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; echo $data.'&lt;br&gt;';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* set the content type json */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_HTTPHEADER, $header&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* set return type json */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, true&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* execute request */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; $result = curl_exec&#40;$ch&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;curl_errno&#40;$ch&#41;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo 'Error&#58; ' . curl_error&#40;$ch&#41;.'&lt;br&gt;';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* close cURL resource */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_close&#40;$ch&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;fclose&#40;$arquivo&#41;;
&nbsp; &nbsp;&nbsp; &nbsp; &#125;// cierra el WHILE $arquivo
&nbsp; &nbsp;&nbsp; &#125;// cierra le&nbsp; WHILE exten
&nbsp; &#125;// cierra el&nbsp; WHILE readdir
?&gt;&lt;?php
/* Envio de multiplas lineas datos&nbsp; */

set_time_limit&#40;0&#41;;

$dir = 'C&#58;/00cargas'; // directorio para lectura del fichero
$dir2= 'C&#58;/00cargasok/';

$dh = opendir&#40;$dir&#41;;
$arq = readdir&#40;$dh&#41;;

&nbsp; // bucle que para leer todos los ficheros
&nbsp; &nbsp;while &#40;false != &#40;$arq = readdir&#40;$dh&#41;&#41;&#41;&#123;
&nbsp; &nbsp;// evalua ficheros
&nbsp; &nbsp;&nbsp; &nbsp;$exten = substr&#40;$arq,strlen&#40;$arq&#41;-3,3&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$exten != &quot;&quot; &amp;&amp; $exten !=&quot;.&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;jpg&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;gif&quot; &amp;&amp; strtolower&#40;$exten&#41; !=&quot;bmp&quot;&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$cont_lin=0;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$linea=&quot;&quot;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$data=&quot;&quot;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* API URL */
&nbsp; &nbsp; &nbsp; $url = 'https&#58;...';
&nbsp; &nbsp; &nbsp; $header = array&#40;&quot;Authorization&#58; Basic Q09CUkFSUjp2UThYM....=&quot;,&quot;Content-Type&#58; application/json&quot;&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;// abrir fichero
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$arquivo = fopen&#40;$dir.&quot;/&quot;.$arq,&quot;r&quot;&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; // evalua se hay fichero para leer
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$arquivo&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while &#40;!feof &#40;$arquivo&#41;&#41;&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$linea = fgets&#40;$arquivo&#41;;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data =&nbsp; substr&#40;$linea,0,strlen&#40;$linea&#41;-2&#41;; // quita el '\r\n'

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; /* Init cURL resource */
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ch = curl_init&#40;$url&#41;;

&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* pass encoded JSON string to the POST fields */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_POSTFIELDS,$data&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; echo $data.'&lt;br&gt;';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* set the content type json */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_HTTPHEADER, $header&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* set return type json */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, true&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* execute request */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; $result = curl_exec&#40;$ch&#41;;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;curl_errno&#40;$ch&#41;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo 'Error&#58; ' . curl_error&#40;$ch&#41;.'&lt;br&gt;';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;/* close cURL resource */
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;curl_close&#40;$ch&#41;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;fclose&#40;$arquivo&#41;;
&nbsp; &nbsp;&nbsp; &nbsp; &#125;// cierra el WHILE $arquivo
&nbsp; &nbsp;&nbsp; &#125;// cierra le&nbsp; WHILE exten
&nbsp; &#125;// cierra el&nbsp; WHILE readdir
?&gt;</pre><p><a href="http://foros.cristalab.com/php-como-hacer-que-curl-se-ejecute-desde-un-bucle-t123182/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sat, 05 Oct 2019 06:35:49</pubDate>
	    </item>
	    <item>
    	    <title>¿Cómo convertir procedimiento Firebird a MySQL?</title>
        	<link>http://foros.cristalab.com/como-convertir-procedimiento-firebird-a-mysql-t123102/</link>
			<guid>http://foros.cristalab.com/como-convertir-procedimiento-firebird-a-mysql-t123102/</guid>
	        <description><![CDATA[ Hola tengo el siguiente procedimiento en Firebird:<br />
CREATE OR ALTER PROCEDURE DIAS_SIN RETURNS (<br />
	"RESULT" INTEGER<br />
)<br />
AS<br />
DECLARE VARIABLE AUX INTEGER;<br />
BEGIN<br />
  AUX    = 0;<br />
  RESULT = 0;<br />
  FOR<br />
    SELECT max(DATEDIFF(DAY FROM DT2.FECHA TO DT1.FECHA))<br />
  FROM DATOS DT1, DATOS DT2<br />
  WHERE DT1.SALIDA_NUM ... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Hola tengo el siguiente procedimiento en Firebird:<br />CREATE OR ALTER PROCEDURE DIAS_SIN RETURNS (<br />	&quot;RESULT&quot; INTEGER<br />)<br />AS<br />DECLARE VARIABLE AUX INTEGER;<br />BEGIN<br />  AUX    = 0;<br />  RESULT = 0;<br />  FOR<br />    SELECT max(DATEDIFF(DAY FROM DT2.FECHA TO DT1.FECHA))<br />  FROM DATOS DT1, DATOS DT2<br />  WHERE DT1.SALIDA_NUM = DT2.SALIDA_NUM + 1 <br />    INTO :AUX<br />  DO<br />    IF(AUX &gt; RESULT) THEN RESULT = AUX;<br />  SUSPEND;<br />END<br />Estoy intentando convertirlo a MySQL me atasco en el SELECT. ¿Puede alguien echarme una mano? Gracias.<p><a href="http://foros.cristalab.com/como-convertir-procedimiento-firebird-a-mysql-t123102/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Mon, 30 Sep 2019 05:18:58</pubDate>
	    </item>
	    <item>
    	    <title>insertar imagenes en tabla de mi base de datos</title>
        	<link>http://foros.cristalab.com/insertar-imagenes-en-tabla-de-mi-base-de-datos-t123060/</link>
			<guid>http://foros.cristalab.com/insertar-imagenes-en-tabla-de-mi-base-de-datos-t123060/</guid>
	        <description><![CDATA[ hola a todos,alguien puede ayudarme en esto,tengo <br />
una tabla que se llama galeria en una base de datos que se llama ana<br />
y tengo un codigo que inserta imagenes a una carpeta y supcarpeta , me falta solo ingresar las imagenes en base de datos .como lo hago gracias<br />
este es mi codigo<br />
<br />
<? include 'acceso_db.php'; ?&... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  hola a todos,alguien puede ayudarme en esto,tengo <br />una tabla que se llama galeria en una base de datos que se llama ana<br />y tengo un codigo que inserta imagenes a una carpeta y supcarpeta , me falta solo ingresar las imagenes en base de datos .como lo hago gracias<br />este es mi codigo<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">
&lt;? include 'acceso_db.php'; ?&gt;

&lt;!--HTML5--&gt;
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&nbsp; &nbsp;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;!--compatibilidad para caracteres especiales--&gt;
&nbsp; &nbsp;&lt;title&gt;Galeria de imagenes&lt;/title&gt;
&nbsp; &nbsp;&lt;link rel=&quot;stylesheet&quot; href=&quot;./css/estilo.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;&lt;!--conexion al estilo--&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;contenedor&quot;&gt;&lt;!--clase para englobar la pagina--&gt;
&nbsp; &nbsp;&lt;div class=&quot;cabecera&quot;&gt;&lt;!--titulo de la pagina--&gt;
&nbsp; &nbsp;&lt;div class=&quot;ftp_area&quot;&gt;&lt;!--clase para el multiarchivos--&gt;
&nbsp; &nbsp;&lt;strong&gt;Agege sus Imagenes&lt;/strong&gt;&lt;br&gt;
&nbsp; &nbsp;Imagenes aceptadas&#58;gif,*.jpg,*.png&lt;BR&gt;&lt;BR&gt;

&lt;?php
$contador=0;//iniciamos un contador para correr los puntos del directorio
$directorio='Galeria/'.$_POST&#91;'categoria'&#93;.'/'; //acachamos el valor de la categoria
if &#40;$ruta = opendir&#40;'./Galeria'&#41;&#41; &#123;//abrimos el directorio galeria
&nbsp; &nbsp; while &#40;false !== &#40;$categoria = readdir&#40;$ruta&#41;&#41;&#41; &#123;//leemos el directorio
&nbsp; &nbsp; if &#40;$categoria != &quot;.&quot; &amp;&amp; $categoria != &quot;..&quot;&#41; &#123;//saltamos los pintos nulos de lectura y mostramos el option del select
&nbsp; &nbsp;$contador++;

&#125;&#125;&#125;&nbsp; &nbsp;
?&gt;

&lt;?php
for&#40;$i=0;$i&lt;count&#40;$_FILES&#91;'file'&#93;&#91;'size'&#93;&#41;;$i++&#41;&#123;//recibimos los archivos y los contamos
&nbsp; &nbsp;if&#40;strstr&#40;$_FILES&#91;'file'&#93;&#91;'type'&#93;&#91;$i&#93;, 'image'&#41;!==false&#41;&#123;//agregamos solo si el archivo es imagen&nbsp; &nbsp;
&nbsp; &nbsp;$imagen = $directorio.$_FILES&#91;'file'&#93;&#91;'name'&#93;&#91;$i&#93;;//acachamos el archivo y la ruta en una variable
&nbsp; &nbsp;move_uploaded_file&#40;$_FILES&#91;'file'&#93;&#91;'tmp_name'&#93;&#91;$i&#93;,$imagen&#41;;//pasamos el archivo al directorio destinado
&nbsp; &nbsp;&#125;
&#125;
?&gt;
&nbsp; &nbsp;&lt;/div&gt;
Galeria de imagenes PHP
&lt;/div&gt;
&lt;div class=&quot;barra&quot;&gt;
&lt;a href=&quot;index.php&quot; class=&quot;menu&quot;&gt;Inicio&lt;/a&gt;&amp;nbsp;
&lt;?php
//hacemos lo mismo para leer el directorio solo que concatenamos a un enlace
if &#40;$ruta = opendir&#40;'./Galeria'&#41;&#41; &#123;
&nbsp; &nbsp; while &#40;false !== &#40;$categoria = readdir&#40;$ruta&#41;&#41;&#41; &#123;
&nbsp; &nbsp; if &#40;$categoria != &quot;.&quot; &amp;&amp; $categoria != &quot;..&quot;&#41; &#123;
&nbsp; &nbsp;$contador++;&nbsp; &nbsp;
echo '&lt;a href=&quot;index.php?categoria='.$categoria.'&quot; class=&quot;menu&quot;&gt;'.$categoria.'&lt;/a&gt;&amp;nbsp;'; 
&#125;&#125;&#125;&nbsp; &nbsp;&nbsp; &nbsp;
?&gt;
&lt;/div&gt;
&nbsp; &nbsp;&lt;div class=&quot;galeria&quot;&gt; 
&nbsp; &nbsp;&lt;div class=&quot;imagenes&quot;&gt;
&lt;div class=&quot;Galeria_titulo&quot;&gt;&lt;?php echo $_GET&#91;'categoria'&#93;.'...';?&gt;&lt;/div&gt;
&lt;!--inicio contenido--&gt;
&lt;?php
$actualiza=&quot;&lt;META HTTP-EQUIV='Refresh' CONTENT='1; URL=index.php'&gt;&quot;;//actualizamos la pagina
//variables de accion con el valor de la ruta recibida
$directorio='Galeria/'.$_GET&#91;'categoria'&#93;.'/';
$nuevo='Galeria/'.$_POST&#91;'nuevo'&#93;.'/'; 
$renombrar='Galeria/'.$_POST&#91;'renombrar'&#93;.'/';
$eliminar='Galeria/'.$_POST&#91;'eliminar'&#93;.'/';
if&#40;$_GET&#91;'categoria'&#93;&#41;&#123;//si se recibe un valor en la categoria
$imagenes = glob&#40;&quot;$directorio&#123;*.gif,*.jpg,*.png&#125;&quot;, GLOB_BRACE&#41;; //recibimos los parametros de la ruta como estencion
foreach&#40;$imagenes as $imagen&#41;&#123; //inicializamos la varible imagenes en vector
//concatenamos la variable a un enlace
echo'
&lt;a href=&quot;'.$imagen.'&quot; target=&quot;_new&quot;&gt;&lt;img src=&quot;'.$imagen.'&quot; border=&quot;0&quot; style=&quot;width&#58;100px;&quot; /&gt;&lt;/a&gt;';
&#125;
&#125;else&#123;
if&#40;$_POST&#91;'nuevo'&#93;&#41;&#123;//si se recibe un valor en nuevo
mkdir&#40;$nuevo, 0777, true&#41;;//creamos el directorio
chmod&#40;$nuevo, 0777&#41;;//otorgamos permisos
echo &quot;&lt;strong&gt;Agegando Categoria....&lt;/strong&gt;&quot;.$actualiza;//mostramos mensaje
&#125;else&#123;
if&#40;$_POST&#91;'eliminar'&#93;&#41;&#123;//si se recibe un valor en eliminar
foreach&#40;glob&#40;$eliminar.&quot;/*&quot;&#41; as $archivos_de_imagen&#41;//inizialisamos una variable con el valor de la ruta en vector
&nbsp; &#123;
&nbsp; &nbsp; if&#40;is_dir&#40;$archivos_de_imagen&#41;&#41;;//comprobamos si corresponde a un directorio
&nbsp; &nbsp; else unlink&#40;$archivos_de_imagen&#41;;//eliminamos los archivos contenidos en el directorio
&nbsp; &#125;
&nbsp; rmdir&#40;$eliminar&#41;;//borramos el directorio
&nbsp; echo '&lt;strong&gt;Eliminando Categoria&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;'.$actualiza;//mostramos mensaje
&#125;else&#123;echo '&lt;strong&gt;Biembenido Galeria de imagenes&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;';&#125;//mensaje por defaul
&#125;
//formularios de acciones
echo '
&lt;form action=&quot;index.php&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
Nueva Categoria&#58;
&lt;input type=&quot;text&quot; name=&quot;nuevo&quot;/&gt;
&lt;input type=&quot;submit&quot; value=&quot;Aceptar&quot; /&gt;
&lt;/form&gt;&lt;BR&gt;
&lt;form action=&quot;index.php&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
Eliminar Categoria&#58;
&lt;select name=&quot;eliminar&quot;&gt;';
//lo mismo para leer el directorio
if &#40;$ruta = opendir&#40;'./Galeria'&#41;&#41; &#123;
&nbsp; &nbsp; while &#40;false !== &#40;$categoria = readdir&#40;$ruta&#41;&#41;&#41; &#123;
&nbsp; &nbsp; if &#40;$categoria != &quot;.&quot; &amp;&amp; $categoria != &quot;..&quot;&#41; &#123;
&nbsp; &nbsp;$contador++;
echo '&lt;option value=&quot;'.$categoria.'&quot;&gt;'.$categoria.'&lt;/option&gt;'; 
&#125;&#125;&#125;&nbsp; &nbsp;echo '&lt;/select&gt;&lt;input type=&quot;submit&quot; value=&quot;Aceptar&quot; /&gt;
&lt;/form&gt;';
&#125;

?&gt;

 &lt;select name=&quot;eliminar&quot;&gt;';

 //insertamos en la BD los campos del form&nbsp; 


$consulta=mysql_query&#40;&quot;SELECT * FROM usuarios where usuario_id='&quot;.$_GET&#91;'id'&#93;.&quot;'&quot;&#41; or die&#40;mysql_error&#40;&#41;&#41;;
while&#40;$filas=mysql_fetch_array&#40;$consulta&#41;&#41;&#123;
&nbsp; &nbsp;$imagen=$filas&#91;'file&#91;&#93;'&#93;;
&nbsp; &nbsp;





 if&#40;isset&#40;$_SESSION&#91;'usuario_id'&#93;&#41;&#41; // Aqui actualizaremos el perfil del usuario en la base de datos y le mostraremos que esta conectado 
&#123; 
session_start&#40;&#41;; 
$orden = &#40;&quot;select * from usuarios where usuario_id = &quot;. $_SESSION&#91;'usuario_id'&#93; .&quot;&quot;&#41;; 

$reg = mysql_query&#40;&quot;INSERT INTO galeria &#40;usuario_nombre,usuario_id,usuario_freg,file&#91;&#93;&#41; VALUES &#40;'&quot;.$usuario_nombre.&quot;','&quot;.$usuario_id.&quot;','&quot;,,'&quot;.$file&#91;&#93;.&quot;', NOW&#40;&#41;&#41;&quot;&#41;;
&nbsp; &nbsp; 
&nbsp; &nbsp;
&#125; 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#125;else&#123;echo &quot;no se guardo la foto, ni se inserto&nbsp; en la Base de Datos&quot;;&#125;&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#125;else&#123;echo &quot;no se subio foto&quot;;&#125;&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#125;else&#123;echo &quot;&quot;;&#125;&nbsp; 


 //ahora el formulario


&lt;/div&gt;&lt;!---fin de contenido--&gt;
&nbsp; &nbsp;&lt;/div&gt;
&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;&lt;div class=&quot;barra&quot;&gt;&lt;center&gt;
&lt;br&gt;
&nbsp; &nbsp;mi web
&nbsp; &nbsp;&lt;/div&gt;
&nbsp; &nbsp;&lt;/div&gt;&lt;!--fin del englobe--&gt;

&lt;/body&gt;
&lt;/html&gt;</pre><p><a href="http://foros.cristalab.com/insertar-imagenes-en-tabla-de-mi-base-de-datos-t123060/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Thu, 26 Sep 2019 10:56:34</pubDate>
	    </item>
	    <item>
    	    <title>No llega  a mi correo  la información del formulario de mi sitio</title>
        	<link>http://foros.cristalab.com/no-llega-a-mi-correo-la-informacion-del-formulario-de-mi-sitio-t122966/</link>
			<guid>http://foros.cristalab.com/no-llega-a-mi-correo-la-informacion-del-formulario-de-mi-sitio-t122966/</guid>
	        <description><![CDATA[ Buenas tardes<br />
<br />
Esperando me puedan apoyar<br />
realize un formulario de contacto con recaptcha de google...<br />
pero tengo dos errores...<br /><br />
1. al dar click en en botn de envio,,, realiza la accion aunque no valide el captcha.<br />
<br />
2. no me llegan al correo que registre ..<br />
<br />
no se en que estoy mal<br />
<br />
si me pueden ayudar po... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Buenas tardes<br /><br />Esperando me puedan apoyar<br />realize un formulario de contacto con recaptcha de google...<br />pero tengo dos errores...<br /><br /><br />1. al dar click en en botn de envio,,, realiza la accion aunque no valide el captcha.<br /><br />2. no me llegan al correo que registre ..<br /><br />no se en que estoy mal<br /><br />si me pueden ayudar por favor,<br /><br />envio el archivo html y el archivo php<br /><br />muchas gracias<br />contacto.HTML<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-html">&lt;form action=&quot;envia.php&quot; method=&quot;post&quot; class=&quot;form-consulta&quot;&gt;
&nbsp; &nbsp; &lt;div class=&quot;col-sm-5 col-sm-offset-1&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group&quot;&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Nombre y apellido&#58; &lt;span&gt;*&lt;/span&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;nombre&quot; placeholder=&quot;Nombre y apellido&quot; class=&quot;form-control&quot; required&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group&quot;&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Email&#58; &lt;span&gt;*&lt;/span&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;Email&quot; class=&quot;form-control&quot; required&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group&quot;&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Telefono&#40;10 digitos&#41;&#58;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;numero&quot; placeholder=&quot;Numero&quot; class=&quot;form-control&quot; required&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
 
&nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &lt;div class=&quot;col-sm-5&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Tema&#58;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; placeholder=&quot;subject&quot; class=&quot;form-control&quot; required&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group&quot;&gt;
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Consulta&#58;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;textarea name=&quot;consulta&quot; required class=&quot;form-control&quot; rows=&quot;8&quot;&gt;&lt;/textarea&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
 
 
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;g-recaptcha&quot; data-sitekey=&quot;6Lc-NbkUAAAAAGqxYS7Y5BBySSvQfi3QAqbsGZ4h&quot;&gt;&lt;/div&gt;
 
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; value=&quot;Enviar&quot; class=&quot;btn btn-primary btn-lg&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&lt;/form&gt;</pre><br /><br /><br /><br />y mi archivo envia.php<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;?php
$remitente = $_POST&#91;'email'&#93;;
$destinatario = &quot;javierm325@gmail.com&quot;; // en esta línea va el mail del destinatario.
$asunto = 'Informes'; // acá se puede modificar el asunto del mail
if &#40;!$_POST&#41;&#123;
?&gt;
 
&lt;?php
&#125;else&#123;
 
&nbsp; &nbsp; $cuerpo = &quot;Nombre y apellido&#58; &quot;&nbsp; &nbsp;. $_POST&#91;&quot;nombre&quot;&#93; . &quot;\r\n&quot;;
&nbsp; &nbsp; $cuerpo .= &quot;Email&#58; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; . $_POST&#91;&quot;email&quot;&#93; . &quot;\r\n&quot;;
&nbsp; &nbsp;$cuerpo .= &quot;Numero&#58; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;. $_POST&#91;&quot;numero&quot;&#93; . &quot;\r\n&quot;;
&nbsp; &nbsp;$cuerpo .= &quot;Consulta&#58; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;. $_POST&#91;&quot;consulta&quot;&#93; . &quot;\r\n&quot;;
 
 
 
&nbsp; &nbsp;//las líneas de arriba definen el contenido del mail. Las palabras que están dentro de $_POST&#91;&quot;&quot;&#93; deben coincidir con el &quot;name&quot; de cada campo. 
&nbsp; &nbsp;// Si se agrega un campo al formulario, hay que agregarlo acá.
 
&nbsp; &nbsp; $headers&nbsp; = &quot;MIME-Version&#58; 1.0\n&quot;;
&nbsp; &nbsp; $headers .= &quot;Content-type&#58; text/plain; charset=utf-8\n&quot;;
&nbsp; &nbsp; $headers .= &quot;X-Priority&#58; 3\n&quot;;
&nbsp; &nbsp; $headers .= &quot;X-MSMail-Priority&#58; Normal\n&quot;;
&nbsp; &nbsp; $headers .= &quot;X-Mailer&#58; php\n&quot;;
&nbsp; &nbsp; $headers .= &quot;From&#58; \&quot;&quot;.$_POST&#91;'nombre'&#93;.&quot; &quot;.$_POST&#91;'apellido'&#93;.&quot;\&quot; &lt;&quot;.$remitente.&quot;&gt;\n&quot;;
 
&nbsp; &nbsp; mail&#40;$destinatario, $asunto, $cuerpo, $headers&#41;;
 
&nbsp; &nbsp; include 'confirma.html'; //se debe crear un html que confirma el envío
&#125;
?&gt;</pre><br /><br /><br />espero ´puedan ayudarme con este tema<br /> gracias  y saludos<p><a href="http://foros.cristalab.com/no-llega-a-mi-correo-la-informacion-del-formulario-de-mi-sitio-t122966/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Fri, 20 Sep 2019 13:12:49</pubDate>
	    </item>
	    <item>
    	    <title>Mostrar consulta detallada tras una búsqueda</title>
        	<link>http://foros.cristalab.com/mostrar-consulta-detallada-tras-una-busqueda-t122921/</link>
			<guid>http://foros.cristalab.com/mostrar-consulta-detallada-tras-una-busqueda-t122921/</guid>
	        <description><![CDATA[ Buenos días,<br />
<br />
Soy novato en esto, os cuento mi problema. <br />
Acabo de crear un buscador el cual me devuelve en una tabla los campos que le solicito de la tabla productos. Ahora lo que me gustaría hacer es un link en cada una de las celdas de la tabla para poder pinchar en él y que me muestre el resto de información en ... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Buenos días,<br /><br />Soy novato en esto, os cuento mi problema. <br />Acabo de crear un buscador el cual me devuelve en una tabla los campos que le solicito de la tabla productos. Ahora lo que me gustaría hacer es un link en cada una de las celdas de la tabla para poder pinchar en él y que me muestre el resto de información en una página nueva.<br /><br /> &lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;<br />                  &lt;tr class=&quot;tablaprincipal&quot;&gt;<br />                    &lt;td width=&quot;34%&quot; scope=&quot;col&quot;&gt;Nombre M&amp;aacute;quina&lt;/td&gt;<br />                    &lt;td width=&quot;23%&quot; scope=&quot;col&quot;&gt;Propietario&lt;/td&gt;<br />                    &lt;td width=&quot;16%&quot; scope=&quot;col&quot;&gt;Usuario&lt;/td&gt;<br />                    &lt;td width=&quot;27%&quot; scope=&quot;col&quot;&gt;Numero de Serie&lt;/td&gt;<br />                  &lt;/tr&gt;<br />   &lt;?php<br />  if (empty($busqueda)){<br />	  $texto = 'Búsqueda sin resultados';<br />  }else{<br />	  // Si hay información para buscar, abrimos la conexión<br />	  conectar();<br />      mysql_set_charset('utf8');  // mostramos la información en utf-8<br />	  <br />	  //Contulta para la base de datos, se utiliza un comparador LIKE para acceder a todo lo que contenga la cadena a buscar<br />	  $sql = &quot;SELECT * FROM tblproducto WHERE strHostName LIKE '%&quot; .$busqueda. &quot;%' or strIdentificador LIKE '%&quot; .$busqueda. &quot;%' or strPropietario LIKE '%&quot; .$busqueda. &quot;%' or strNumerodeSerie LIKE '%&quot; .$busqueda. &quot;%' ORDER BY idMaquina&quot;;<br />	  <br />	  $resultado = mysql_query($sql); //Ejecución de la consulta<br />      //Si hay resultados...<br />	  if (mysql_num_rows($resultado) &gt; 0){ <br />	    <br />	     // Se almacenan las cadenas de resultado<br />		 while($fila = mysql_fetch_assoc($resultado)){ <br />		 ?&gt;<br />         &lt;tr&gt;<br />              &lt;td class=&quot;datostabla&quot;&gt;&lt;?php echo $fila['strHostName'];?&gt;&lt;/td&gt;<br />			  &lt;td class=&quot;datostabla&quot;&gt;&lt;?php echo $fila['strPropietario'];?&gt;&lt;/td&gt;<br />			  &lt;td class=&quot;datostabla&quot;&gt;&lt;?php echo $fila['strIdentificador'];?&gt;&lt;/td&gt;<br />			  &lt;td class=&quot;datostabla&quot;&gt;&lt;?php echo $fila['strNumerodeSerie'];?&gt; &lt;/td&gt;<br />        <br />		&lt;?php<br />             }<br />            ?&gt;<br />        <br />	  		&lt;?php<br />	  }else{<br />		 	?&gt;<br />			   &lt;td&gt;&lt;?php echo $texto = &quot;No hay resultados en la base de datos.&quot;;?&gt;&lt;/td&gt; <br />			&lt;?php   <br />	  }<p><a href="http://foros.cristalab.com/mostrar-consulta-detallada-tras-una-busqueda-t122921/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Tue, 17 Sep 2019 08:06:45</pubDate>
	    </item>
	    <item>
    	    <title>Mostrar nombre del mes en español</title>
        	<link>http://foros.cristalab.com/mostrar-nombre-del-mes-en-espanol-t122903/</link>
			<guid>http://foros.cristalab.com/mostrar-nombre-del-mes-en-espanol-t122903/</guid>
	        <description><![CDATA[ Hola, tengo un código el cual evita mostrar el año del mes de start_date si es igual al de end_date.<br />
El problema es que me muestra las fechas sólo en inglés.<br />
No logro hacerlo funcionar con setlocale.<br />
<br />
<?php<br />
require_once 'connected.php';<br />
   $result;<br />
   $conn = dbConnect();<br />
  &... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola, tengo un código el cual evita mostrar el año del mes de start_date si es igual al de end_date.<br />El problema es que me muestra las fechas sólo en inglés.<br />No logro hacerlo funcionar con setlocale.<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;?php
require_once 'connected.php';
&nbsp; &nbsp;$result;
&nbsp; &nbsp;$conn = dbConnect&#40;&#41;;
&nbsp; &nbsp;$sql = 'SELECT start_date, end_date FROM activeDates';
&nbsp; &nbsp;$result = $conn-&gt;query&#40;$sql&#41;;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;$rows = $result-&gt;fetchall&#40;&#41;;
&nbsp; &nbsp;
 ?&gt;
&nbsp; &nbsp;&lt;div class=&quot;table-responsive&quot;&gt;
&nbsp; &nbsp;&lt;table&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;thead&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th&gt;&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th&gt;Dates&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/thead&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&lt;tbody&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&lt;?php
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;foreach &#40;$rows as $row&#41; &#123;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;?&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;td&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;?php&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp; $start=new DateTime&#40;$row&#91;'start_date'&#93;&#41;;
&nbsp; &nbsp; $startDay=$start-&gt;format&#40;'j'&#41;;
&nbsp; &nbsp; $startMonth=$start-&gt;format&#40;'F'&#41;;
&nbsp; &nbsp; $startYear=$start-&gt;format &#40;'Y'&#41;;
&nbsp; &nbsp; $end=new DateTime&#40;$row&#91;'end_date'&#93;&#41;;
&nbsp; &nbsp; $endDay=$end-&gt;format&#40;'j'&#41;;
&nbsp; &nbsp; $endMonth=$end-&gt;format&#40;'F'&#41;;
&nbsp; &nbsp; $endYear=$end-&gt;format&#40;'Y'&#41;;

&nbsp; &nbsp; $s=&#40;
&nbsp; &nbsp; &nbsp; &nbsp; &#40;$startMonth == $endMonth &amp;&amp; $startYear==$endYear&#41; ? &quot;$startDay $startMonth till $endDay $endMonth $startYear&quot; &#58; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#40; &#40;$startMonth!==$endMonth &amp;&amp; $startYear==$endYear&#41; ? &quot;$startDay $startMonth till $endDay $endMonth $startYear&quot; &#58; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#40; &#40;$startMonth==$endMonth &amp;&amp; $startYear!==$endYear&#41; ? &quot;$startDay $startMonth $startYear till $endDay $endMonth $endYear&quot; &#58; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;$startDay $startMonth $startYear till $endDay $endMonth $endYear&quot;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#41;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#41;
&nbsp; &nbsp; &nbsp; &nbsp; &#41;;
&nbsp; &nbsp; echo $s.PHP_EOL;&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/td&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt;

&nbsp; &nbsp;&nbsp; &nbsp;&lt;?php &#125; ?&gt;</pre><p><a href="http://foros.cristalab.com/mostrar-nombre-del-mes-en-espanol-t122903/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Mon, 16 Sep 2019 10:06:43</pubDate>
	    </item>
	    <item>
    	    <title>Tablas relacionadas con una llave foranea</title>
        	<link>http://foros.cristalab.com/tablas-relacionadas-con-una-llave-foranea-t122668/</link>
			<guid>http://foros.cristalab.com/tablas-relacionadas-con-una-llave-foranea-t122668/</guid>
	        <description><![CDATA[ Buenas tardes, tengo conocimientos muy básicos de PHP y MySQL y llegué a un punto donde necesito relacionar 2 tablas pero no sé como hacerlo en PHP a pesar de que ya en MySQL pude hacerlo.<br />
<br />
Tengo la tabla usuarios con:<br />
usuario_id<br />
usuario_nombre<br />
usuario_apellido<br />
<br />
y la tabla imagenes con:<br />
imagen_id<br />
imagen_nombre... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Buenas tardes, tengo conocimientos muy básicos de PHP y MySQL y llegué a un punto donde necesito relacionar 2 tablas pero no sé como hacerlo en PHP a pesar de que ya en MySQL pude hacerlo.<br /><br />Tengo la tabla usuarios con:<br />usuario_id<br />usuario_nombre<br />usuario_apellido<br /><br />y la tabla imagenes con:<br />imagen_id<br />imagen_nombre<br />id_usuarios (Esta es mi llave foránea).<br /><br />No tengo idea de como asignar el nombre de las imágenes a su respectivo usuario.<br /><br />De antemano agradezco cualquier ayuda que me puedan prestar al respecto. saludos.<p><a href="http://foros.cristalab.com/tablas-relacionadas-con-una-llave-foranea-t122668/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Fri, 30 Aug 2019 14:39:25</pubDate>
	    </item>
	    <item>
    	    <title>Parar bucle while php</title>
        	<link>http://foros.cristalab.com/parar-bucle-while-php-t122560/</link>
			<guid>http://foros.cristalab.com/parar-bucle-while-php-t122560/</guid>
	        <description><![CDATA[ Hola, tengo un codigo que utiliza un ciclo While, donde subo un archivo de excel en csv y lo subó a la bd en mysql, pero necesito que cuando encuentre un valor null no agregue a la bd el archivo en su totalidad<br /><br />
if (file_exists($archivo_guardado)) {<br />
      $fp = fopen($a... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola, tengo un codigo que utiliza un ciclo While, donde subo un archivo de excel en csv y lo subó a la bd en mysql, pero necesito que cuando encuentre un valor null no agregue a la bd el archivo en su totalidad<br /><br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">
if &#40;file_exists&#40;$archivo_guardado&#41;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;$fp = fopen&#40;$archivo_guardado,&quot;r&quot;&#41;;//abrir archivo
&nbsp; &nbsp;&nbsp; &nbsp;$rows = 0;
&nbsp; &nbsp;&nbsp; &nbsp;while &#40;$datos = fgetcsv&#40;$fp,1000,&quot;,&quot;&#41;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$rows ++;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if &#40;$datos != &quot;&quot;&#41; &#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$resultado = insertar_datos_actividad&#40;$datos&#91;0&#93;,$datos&#91;1&#93;,$datos&#91;2&#93;,$datos&#91;3&#93;&#41;; //Llamo funcion insertar
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$mostrarModal=true; //muestro un mensaje que se inserto
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;else&#123;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$mostrarModal2=true; //muestro mensaje que no se inserto, pero si lo inserta
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125;
 
&nbsp; &nbsp;&nbsp; &nbsp;&#125;
&nbsp; &nbsp;&#125;else&#123;
&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;No existe el archivos &quot;;
&nbsp; &nbsp;&#125;
&#125;
</pre><p><a href="http://foros.cristalab.com/parar-bucle-while-php-t122560/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Thu, 22 Aug 2019 09:46:05</pubDate>
	    </item>
	    <item>
    	    <title>PHP7 ó Node Js</title>
        	<link>http://foros.cristalab.com/php7-o-node-js-t122265/</link>
			<guid>http://foros.cristalab.com/php7-o-node-js-t122265/</guid>
	        <description><![CDATA[ Buenas noches amigos como estan.. con las nuevas tendencias y avances en el desarrollo de sitios web.. para el desarrollo de estos.. cual seria el mas recomendable a utilizar a la hora de realizar un sitio o aplicacion web para una empresa.. Node Js o PHP en su última version.. :D  :) <br />
<br />
este sitio web lo hice en PHP7... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Buenas noches amigos como estan.. con las nuevas tendencias y avances en el desarrollo de sitios web.. para el desarrollo de estos.. cual seria el mas recomendable a utilizar a la hora de realizar un sitio o aplicacion web para una empresa.. Node Js o PHP en su última version.. <img src="/foros/images/smiles/icon_sunrise.gif" alt=":D" border="0" />  <img src="/foros/images/smiles/icon_happy.gif" alt=":)" border="0" /> <br /><br />este sitio web lo hice en PHP7 y carga mu rápido por lo que lei que la última version 7.3 es mucho mejor<br /><br />https://venmaster.com.ve<p><a href="http://foros.cristalab.com/php7-o-node-js-t122265/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Tue, 30 Jul 2019 14:57:24</pubDate>
	    </item>
	    <item>
    	    <title>Como hacer un query para traer los ultimos valores de unas listas</title>
        	<link>http://foros.cristalab.com/como-hacer-un-query-para-traer-los-ultimos-valores-de-unas-listas-t122252/</link>
			<guid>http://foros.cristalab.com/como-hacer-un-query-para-traer-los-ultimos-valores-de-unas-listas-t122252/</guid>
	        <description><![CDATA[ Buenas tardes perdon si no soy muy claro, mi duda es sobre como podria hacer un query para traerme los ultimos valores de una lista ejmplo<br />
<br />
suponiendo que tengo una tabla con esta estructura :<br />
<br />
EMPLEADO	CALIFICA<br />
Rodri	            3<br />
Rodri	            1<br />
Pepe	            2<br />
Pepe	            4<br />
Juan	           1<br />
<br />
... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Buenas tardes perdon si no soy muy claro, mi duda es sobre como podria hacer un query para traerme los ultimos valores de una lista ejmplo<br /><br />suponiendo que tengo una tabla con esta estructura :<br /><br />EMPLEADO	CALIFICA<br />Rodri	            3<br />Rodri	            1<br />Pepe	            2<br />Pepe	            4<br />Juan	           1<br /><br />y deseo poder traer los valores mas altos por empleado asi:<br /><br /><br />EMPLEADO	CALIFICA<br />Rodri	            3<br />Pepe	            4<br />Juan	           1<br /><br />Como podria hacer un query asi?<br />De antemano gracias por su atencion.<p><a href="http://foros.cristalab.com/como-hacer-un-query-para-traer-los-ultimos-valores-de-unas-listas-t122252/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Mon, 29 Jul 2019 09:56:32</pubDate>
	    </item>
	    <item>
    	    <title>Informacion Div's ocultos con informacion extraida de la DB</title>
        	<link>http://foros.cristalab.com/informacion-divs-ocultos-con-informacion-extraida-de-la-db-t122230/</link>
			<guid>http://foros.cristalab.com/informacion-divs-ocultos-con-informacion-extraida-de-la-db-t122230/</guid>
	        <description><![CDATA[ Hola, si es posible alguien me podria colaborar e indicarme cual o cuales podrian ser los errores.<br />
<br />
//Inicia la Conexion a la DB<br />
<?php<br />
include("conec.php");<br />
conecta();<br />
//Busqueda en tabla segun criterio<br />
$sql = "SELECT * FROM prueba WHERE funci_asig = 'YM' order by registro ASC&q... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[  Hola, si es posible alguien me podria colaborar e indicarme cual o cuales podrian ser los errores.<br /><br />//Inicia la Conexion a la DB<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;?php
include&#40;&quot;conec.php&quot;&#41;;
conecta&#40;&#41;;
//Busqueda en tabla segun criterio
$sql = &quot;SELECT * FROM prueba WHERE funci_asig = 'YM' order by registro ASC&quot;;&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; $result = mysql_query&#40;$sql&#41;; 
?&gt;</pre><br />//Scrip oculta muestra div's<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">&lt;script type=&quot;text/javascript&quot;&gt;&nbsp; 
document.write&#40;'&lt;style type=&quot;text/css&quot;&gt;div.cp_oculta&#123;display&#58; none;&#125;&lt;/style&gt;'&#41;;&nbsp; &nbsp;
function MostrarOcultar&#40;capa,enlace&#41;&nbsp; 
&#123;&nbsp; 
&nbsp; &nbsp; if &#40;document.getElementById&#41;&nbsp; 
&nbsp; &nbsp; &#123;&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; var aux = document.getElementById&#40;capa&#41;.style;&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; aux.display = aux.display? &quot;&quot;&#58;&quot;block&quot;;&nbsp; 
&nbsp; &nbsp; &#125;&nbsp; 
&#125;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp; &lt;/script&gt; </pre><br />//Div muestra informacion extraida segun criterio	<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">&lt;div align='center'&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &lt;table border='1' cellpadding='0' cellspacing='0' width='600' bgcolor='#F6F6F6' bordercolor='#FFFFFF'&gt;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp; &lt;tr&gt;&nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='300' style='font-weight&#58; bold'&gt;NOMBRE&lt;/td&gt;&nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='300' style='font-weight&#58; bold'&gt;radicado&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&lt;?php&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while &#40;$registro = mysql_fetch_array&#40;$result&#41;&#41;&#123; 
&nbsp; &nbsp;&nbsp; &nbsp;echo&quot;&lt;tr style='background-color&#58;#FFFFFF;'&gt;&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;&lt;td width='200'&gt;&quot;.$registro&#91;&quot;funci_asig&quot;&#93;.&quot;&lt;/td&gt;&quot;;
&nbsp; &nbsp;&nbsp; &nbsp;echo &quot;&lt;td width='200'&gt;&lt;a href=javascript&#58;MostrarOcultar&#40;'texto'&#41; ?ref=&quot;.$registro&#91;'rad_nurf2'&#93;.&quot; &gt;&quot;.$registro&#91;'rad_nurf2'&#93;.&quot;&lt;/a&gt;&lt;/td&gt;&quot;;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;echo&quot;&lt;/tr&gt;&quot;;
&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&#125;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;?&gt;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&lt;/table&gt;&nbsp; 
&nbsp; &nbsp;&lt;/div&gt;</pre>  <br />//Div que muestra y se oculta debe contener ampliada la informacion segun criterio 	<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint">&lt;div class=&quot;cp_oculta&quot; id=&quot;texto&quot;&gt;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;br&gt;&lt;br&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;legend&gt;&lt;b style=&quot;color&#58; black;&quot;&gt;Solicitudes&lt;/b&gt;&lt;/legend&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;div class=&quot;table-responsive&quot;&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;table class='table table-striped table-bordered' id='user_data'&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;thead&gt;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Asignación&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Número&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Radicado Nurf2&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Gestion&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Peticionario&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Documento&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;cargo&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;teléfono&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;dirección&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;th style='aling center'&gt;Correo&lt;/th&gt;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/thead&gt;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;?php&nbsp; 
&nbsp; &nbsp;//pilas aca.. no se muestra el resultado de la DB por numero de radicado
//aca lio no obtiene la info que deberia traer para realizar la busqueda ampliada segun se de click sobre el argumento
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$id = $_GET&#91;'ref'&#93;;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$query = &quot;select * from prueba where rad_nurf2 = '$id'&quot;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$result = mysql_query&#40;$query&#41;; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while &#40;$registro = mysql_fetch_array&#40;$result&#41;&#41;&#123; 

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;echo &quot; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;$id&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'fecha_ela'&#93;.&quot;&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'registro'&#93;.&quot;&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'gestion'&#93;.&quot;&lt;/td&gt;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'nombres'&#93;.&quot;&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'documento'&#93;.&quot;&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'cargo'&#93;.&quot;&lt;/td&gt; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'telefono'&#93;.&quot;&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'direccion'&#93;.&quot;&lt;/td&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;td width='150'&gt;&quot;.$registro&#91;'email'&#93;.&quot;&lt;/td&gt; &nbsp; &nbsp;&nbsp; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#125; 
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;?&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/table&gt;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/div&gt;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&lt;/div&gt;</pre>	<br />//Cierra conexion		<br /><p class="datos_bloque"><strong>C&oacute;digo :</strong></p><pre class="prettyprint lang-php">&lt;?php
mysql_close&#40;$conexion&#41;; 
?&gt;</pre><p><a href="http://foros.cristalab.com/informacion-divs-ocultos-con-informacion-extraida-de-la-db-t122230/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Sat, 27 Jul 2019 09:44:16</pubDate>
	    </item>
	    <item>
    	    <title>Codigo Php para controlar Pirateo username y password de un programa</title>
        	<link>http://foros.cristalab.com/codigo-php-para-controlar-pirateo-username-y-password-de-un-programa-t122176/</link>
			<guid>http://foros.cristalab.com/codigo-php-para-controlar-pirateo-username-y-password-de-un-programa-t122176/</guid>
	        <description><![CDATA[ Codigo Php para controlar Pirateo username y password de un programa de pc<br />
<br />
Ando buscando desde hace tiempo un codigo php en el fondo simple:<br />
<br />
- Yo he creado un software<br />
<br />
- Algunas funciones del software las dejo en php, que el software del pc llama enviando su username y password<br />
<br />
- Se trata de controlar si 2 ... ]]></description>

	        <dc:creator>Cristalab</dc:creator>
	        
            <content:encoded><![CDATA[ Codigo Php para controlar Pirateo username y password de un programa de pc<br /><br />Ando buscando desde hace tiempo un codigo php en el fondo simple:<br /><br />- Yo he creado un software<br /><br />- Algunas funciones del software las dejo en php, que el software del pc llama enviando su username y password<br /><br />- Se trata de controlar si 2 o mas personas conectan a la vez - o sea, se conecta al archivo php desde 2 o mas diferentes ip - con mismo username y password, pues ahi que el software php envie una respuesta de que se esta conectando desde 2 o mas sitios diferentes, y que mire el correo el comprador original en que recibira un nuevo password...<br /><br />Esto lo hace cualquiera de los sitios en la nube, como depositfiles, filejoker, etc<br /><br />Que si el software de la pagina web de depositfiles - por ejemplo - ve que se estan conectando 2 o mas usuarios desde diferentes ip's pero con mismo username y password, normalmente bloquean el acceso a la cuenta de depositfiles durante un periodo x...<br /><br />Yo prefiero que se cambie el password y que el archivo php envie un email al email del comprador original con el nuevo password...<br /><br />No creo que sea muy dificil el codigo, y me imagino que quizas haya codigo libre ya hecho para esto...<br /><br />ALGUIEN SABE DE UN CODIGO PHP QUE HAGA ESTO???<br /><br />SALUDOS Y GRACIAS DE ANTEMANO!!!<p><a href="http://foros.cristalab.com/codigo-php-para-controlar-pirateo-username-y-password-de-un-programa-t122176/#enviar" title="Env&iacute;a tus comentarios de este art&iacute;lo"><img src="http://www.cristalab.com/images/general/enviar-comentario.png" alt="Enviar comentario" /></a></p> ]]></content:encoded>
	        <pubDate>Tue, 23 Jul 2019 12:34:05</pubDate>
	    </item>
	</channel>
</rss>