{"id":525,"date":"2013-06-20T09:02:34","date_gmt":"2013-06-20T15:02:34","guid":{"rendered":"http:\/\/behstant.com\/blog\/?p=525"},"modified":"2016-05-02T10:30:39","modified_gmt":"2016-05-02T16:30:39","slug":"crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click","status":"publish","type":"post","link":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/","title":{"rendered":"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)"},"content":{"rendered":"<p>Dandole seguimiento a los tutoriales que he realizado, \u00a0ahora voy a mostrar como \u00a0como llenar una tabla con el id y que \u00e9ste tenga un enlace para que cuando el usuario le de click se despliegue la informaci\u00f3n.<\/p>\n<p>Para poder completar este tutorial primero debes de haber realizado el tutorial\u00a0<a style=\"font-size: 1.17em;\" title=\"Permanent Link to M\u00e9todo PDO::query para obtener resultados con MySQL\" href=\"http:\/\/behstant.com\/blog\/?p=413\" target=\"_blank\" rel=\"bookmark\">M\u00e9todo PDO::query para obtener resultados con MySQL<\/a>\u00a0para saber como obtener resultados de un query. Como se puede obervar en ese tutorial mostramos nuestro resultado en una tabla. \u00a0Para cumplir nuestro objetivo vamos crear un query string con el id del empleado en la tabla que hemos creado. \u00a0Este query string lo vamos a formar en un\u00a0\u00a0tag anchor &#8216;a&#8217; . Tambi\u00e9n tienes que haber completado el tutorial\u00a0<a title=\"Permanent Link to M\u00e9todo PDO::prepare Obtener Resultados con Parametros\" href=\"http:\/\/behstant.com\/blog\/?p=475\" rel=\"bookmark\">M\u00e9todo PDO::prepare Obtener Resultados con Parametros<\/a>\u00a0para saber como buscar un registro dado un valor.<\/p>\n<p>1.- Primero que nada debemos de tener nuestra tabla ya lista.<\/p>\n<p><!--more--><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-429 aligncenter\" title=\"010\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\" alt=\"\" width=\"427\" height=\"342\" srcset=\"https:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png 427w, https:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010-300x240.png 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/a><\/p>\n<p>2.- Ahora tenemos que modificar un poco la creaci\u00f3n de nuestra tabla la cual tiene este c\u00f3digo:<\/p>\n<pre class=\"brush: php; gutter: true\">                &lt;?php\r\n\t\t\tforeach ($rows as $row) {\t\r\n\t\t?&gt;\r\n\t\t\t&lt;tr&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;id_empleado&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;nombre&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;email&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;telefono&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t&lt;\/tr&gt;\r\n\t\t&lt;?php } ?&gt;<\/pre>\n<p>Y lo vamos a cambiar por este otro<\/p>\n<pre class=\"brush: php; gutter: true\">                &lt;?php\r\n\t\t\tforeach ($rows as $row) {\r\n\t\t?&gt;\r\n\t\t\t&lt;tr&gt;\r\n\t\t\t\t&lt;td&gt;&lt;a href=&quot;searchEmployee.php?id=&lt;?php echo $row[&#039;id_empleado&#039;]; ?&gt;&quot;&gt;&lt;?php echo $row[&#039;id_empleado&#039;]; ?&gt;&lt;\/a&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;nombre&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;email&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;telefono&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t&lt;\/tr&gt;\r\n\t\t&lt;?php } ?&gt;<\/pre>\n<p>Y resultado de nuestra tabla va a ser los Id con un link hacia una p\u00e1gina llamada searchEmployee.php.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/023.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-527 aligncenter\" title=\"023\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/023.png\" alt=\"\" width=\"451\" height=\"161\" srcset=\"https:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/023.png 451w, https:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/023-300x107.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<p>Este es el c\u00f3digo completo \u00a0que nos da el resultado anterior:<\/p>\n<pre class=\"brush: php; gutter: true\">&lt;?php\r\n\trequire_once &#039;Connection.simple.php&#039;;\r\n\t$result;\r\n\r\n\t$conn = dbConnect();\r\n\t\/\/ Create the query\r\n\t$sql = &#039;SELECT * FROM empleado&#039;;\r\n\t\/\/ Create the query and asign the result to a variable call $result\r\n\t$result = $conn-&gt;query($sql);\r\n\t\/\/ Extract the values from $result\r\n\t$rows = $result-&gt;fetchAll();\r\n\t\/\/ Since the values are an associative array we use foreach to extract the values from $rows\r\n ?&gt;\r\n &lt;!DOCTYPE html&gt;\r\n&lt;html lang=&quot;en&quot;&gt;\r\n    &lt;head&gt;\r\n    \t&lt;meta charset=&quot;UTF-8&quot; \/&gt;\r\n        &lt;title&gt;Query data sending an ID&lt;\/title&gt;\r\n        &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=9,crome&quot; \/&gt;\r\n\t\t&lt;meta name=&quot;copyright&quot; content=&quot;Datasoft Engineering 2013&quot;\/&gt;\r\n\t\t&lt;meta name=&quot;author&quot; content=&quot;Reedyseth&quot;\/&gt;\r\n\t\t&lt;meta name=&quot;email&quot; content=&quot;ibarragan@behstant.com&quot;\/&gt;\r\n\t\t&lt;meta name=&quot;description&quot; content=&quot;Query data sending an ID&quot; \/&gt;\r\n\t\t&lt;link rel=stylesheet href=&quot;..\/css\/style01.css&quot;&gt;\r\n\t&lt;\/head&gt;\r\n    &lt;body&gt;\r\n    \t&lt;table border=&quot;1&quot;&gt;\r\n\t\t&lt;thead&gt;\r\n\t\t\t&lt;tr&gt;\r\n\t\t\t\t&lt;th&gt;ID&lt;\/th&gt;\r\n\t\t\t\t&lt;th&gt;Nombre&lt;\/th&gt;\r\n\t\t\t\t&lt;th&gt;Email&lt;\/th&gt;\r\n\t\t\t\t&lt;th&gt;Telefono&lt;\/th&gt;\r\n\t\t\t&lt;\/tr&gt;\r\n\t\t&lt;\/thead&gt;\r\n\t\t&lt;tbody&gt;\r\n\t\t&lt;?php\r\n\t\t\tforeach ($rows as $row) {\r\n\t\t?&gt;\r\n\t\t\t&lt;tr&gt;\r\n\t\t\t\t&lt;td&gt;&lt;a href=&quot;searchEmployee.php?id=&lt;?php echo $row[&#039;id_empleado&#039;]; ?&gt;&quot;&gt;&lt;?php echo $row[&#039;id_empleado&#039;]; ?&gt;&lt;\/a&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;nombre&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;email&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t\t&lt;td&gt;&lt;?php echo $row[&#039;telefono&#039;]; ?&gt;&lt;\/td&gt;\r\n\t\t\t&lt;\/tr&gt;\r\n\t\t&lt;?php } ?&gt;\r\n\t\t&lt;\/tbody&gt;\r\n\t&lt;\/table&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>3.-Ahora vamos a realizar la b\u00fasqueda de la informaci\u00f3n del empleado. Podemos ver que en el query string obtenemos la variable id con un valor, algo as\u00ed:<\/p>\n<pre class=\"brush: html; gutter: true\">     searchEmployee.php?id=1<\/pre>\n<p>Como la informaci\u00f3n es enviada a trav\u00e9s de un query string en php la vamos a obtener con $_GET, ya que la informaci\u00f3n no es enviada por una forma. Entonces con el siguiente c\u00f3digo realizamos la busqueda y guardamos el valor en una variable $row.<\/p>\n<pre class=\"brush: php; gutter: true\">&lt;?php\r\n\trequire_once &#039;Connection.simple.php&#039;;\r\n\t$result = &quot;&quot;;\r\n\t$row = null;\r\n\t$conn = dbConnect();\r\n\t\/\/ If &#039;buscar&#039; is in the array $_POST proceed to make the query.\r\n\tif (isset($_GET[&#039;id&#039;])) {\r\n\t\t\/\/ Create the query\r\n\t\t$sql = &#039;SELECT * FROM empleado WHERE id_empleado = ?&#039;;\r\n\t\t\/\/ we have to tell the PDO that we are going to send values to the query\r\n\t\t$stmt = $conn-&gt;prepare($sql);\r\n\t\t\/\/ Now we execute the query passing an array toe execute();\r\n\t\t$results = $stmt-&gt;execute(array($_GET[&#039;id&#039;]));\r\n\t\t\/\/ Extract the values from $result\r\n\t\t$row = $stmt-&gt;fetch();\r\n\t\t\/*\r\n\t\t$error = $stmt-&gt;errorInfo();\r\n\t\techo $error[2];\r\n\t\t*\/\r\n\t\tif (empty($row)) {\r\n\t\t\t$result = &quot;No se encontraron resultados !!&quot;;\r\n\t\t}\r\n\t}\r\n ?&gt;<\/pre>\n<p>4.- Ahora para mostrar la informaci\u00f3n del empleado vamos a usar una forma. La raz\u00f3n por la que se usa una forma es por que en un siguiente post voy a mostrar como editar o eliminar un registro \u00a0y \u00e9sta va a ser la plantilla base.<\/p>\n<pre class=\"brush: html; gutter: true\">&lt;label for=&quot;id&quot;&gt;Id de empleado:&lt;\/label&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;id&quot; id=&quot;id&quot;\/ disabled=&quot;disabled&quot; value=&quot;&lt;?php echo $row[&#039;id_empleado&#039;];?&gt;&quot;&gt;&lt;br\/&gt;\r\n&lt;label for=&quot;nombre&quot;&gt;Nombre:&lt;\/label&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;nombre&quot; id=&quot;nombre&quot;\/ value=&quot;&lt;?php echo $row[&#039;nombre&#039;];?&gt;&quot;&gt;&lt;br\/&gt;\r\n&lt;label for=&quot;email&quot;&gt;Email:&lt;\/label&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo $row[&#039;email&#039;];?&gt;&quot;\/&gt;&lt;br\/&gt;\r\n&lt;label for=&quot;telefono&quot;&gt;Telefono:&lt;\/label&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;telefono&quot; id=&quot;telefono&quot; value=&quot;&lt;?php echo $row[&#039;telefono&#039;];?&gt;&quot;\/&gt;&lt;br\/&gt;\r\n&lt;input type=&quot;submit&quot; name=&quot;update&quot; value=&quot;Actualizar&quot; disabled=&quot;disabled&quot;\/&gt;\r\n&lt;input type=&quot;submit&quot; name=&quot;delete&quot; value=&quot;Eliminar&quot; disabled=&quot;disabled&quot;\/&gt;<\/pre>\n<p>Una vez mostrado nuestra informaci\u00f3n queda listo para ser editada o eliminada.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/024.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-538 aligncenter\" title=\"024\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/024.png\" alt=\"\" width=\"530\" height=\"214\" srcset=\"https:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/024.png 530w, https:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/024-300x121.png 300w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/a><\/p>\n<p>Para el tutorial mostr\u00e9 la informaci\u00f3n en una forma, pero no tiene que ser de esta manera siempre, ustedes pueden poner la informaci\u00f3n en cualquier tag de HTML y darle formato.<\/p>\n<p>Si tienen dudas o comentarios sobre el post no duden en realizarlas.<\/p>\n<p>El c\u00f3digo con comentarios detallados se encuentra aqu\u00ed :<\/p>\n\t<form id=\"edd_purchase_1114\" class=\"edd_download_purchase_form edd_purchase_1114\" method=\"post\">\n\n\t\t\t<div class=\"edd_price_options edd_single_mode\" >\n\t\t<ul>\n\t\t\t<li id=\"edd_price_option_1114_apoyaaldesarrollador\"><label for=\"edd_price_option_1114_1\"><input type=\"radio\"  checked='checked' name=\"edd_options[price_id][]\" id=\"edd_price_option_1114_1\" class=\"edd_price_option_1114\" value=\"1\" data-price=\"9.99\"\/>&nbsp;<span class=\"edd_price_option_name\">Apoya al desarrollador<\/span><span class=\"edd_price_option_sep\">&nbsp;&ndash;&nbsp;<\/span><span class=\"edd_price_option_price\">&#36;9.99<\/span><\/label><\/li><li id=\"edd_price_option_1114_mesientoagradecido\"><label for=\"edd_price_option_1114_2\"><input type=\"radio\"  name=\"edd_options[price_id][]\" id=\"edd_price_option_1114_2\" class=\"edd_price_option_1114\" value=\"2\" data-price=\"4.99\"\/>&nbsp;<span class=\"edd_price_option_name\">Me siento agradecido<\/span><span class=\"edd_price_option_sep\">&nbsp;&ndash;&nbsp;<\/span><span class=\"edd_price_option_price\">&#36;4.99<\/span><\/label><\/li><li id=\"edd_price_option_1114_soloelcdigo\"><label for=\"edd_price_option_1114_3\"><input type=\"radio\"  name=\"edd_options[price_id][]\" id=\"edd_price_option_1114_3\" class=\"edd_price_option_1114\" value=\"3\" data-price=\"2.99\"\/>&nbsp;<span class=\"edd_price_option_name\">Solo el c\u00f3digo<\/span><span class=\"edd_price_option_sep\">&nbsp;&ndash;&nbsp;<\/span><span class=\"edd_price_option_price\">&#36;2.99<\/span><\/label><\/li>\t\t<\/ul>\n\t<\/div><!--end .edd_price_options-->\n\t\n\t\t<div class=\"edd_purchase_submit_wrapper\">\n\t\t\t<button class=\"edd-add-to-cart button-cart edd-submit\" data-nonce=\"cf0b7c3909\" data-timestamp=\"1781361103\" data-token=\"0dfbc621d417bc5ed7df86ad2c7cb76476680f757c48ccd7b834af124e051b64\" data-action=\"edd_add_to_cart\" data-download-id=\"1114\"  data-variable-price=\"yes\" data-price-mode=single data-price=\"0.00\" ><span class=\"edd-add-to-cart-label\">(Paypal) Descargar c\u00f3digo Comentado (RECOMENDADO)<\/span> <span class=\"edd-loading\" aria-label=\"Loading\"><\/span><\/button><input type=\"submit\" class=\"edd-add-to-cart edd-no-js button-cart edd-submit\" name=\"edd_purchase_download\" value=\"(Paypal) Descargar c\u00f3digo Comentado (RECOMENDADO)\" data-action=\"edd_add_to_cart\" data-download-id=\"1114\"  data-variable-price=\"yes\" data-price-mode=single \/><a href=\"https:\/\/behstant.com\/blog\/checkout\/\" class=\"edd_go_to_checkout button-cart edd-submit\" style=\"display:none;\">Checkout<\/a>\n\t\t\t\t\t\t\t<span class=\"edd-cart-ajax-alert\" aria-live=\"assertive\">\n\t\t\t\t\t<span class=\"edd-cart-added-alert\" style=\"display: none;\">\n\t\t\t\t\t\t<svg class=\"edd-icon edd-icon-check\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path d=\"M26.11 8.844c0 .39-.157.78-.44 1.062L12.234 23.344c-.28.28-.672.438-1.062.438s-.78-.156-1.06-.438l-7.782-7.78c-.28-.282-.438-.673-.438-1.063s.156-.78.438-1.06l2.125-2.126c.28-.28.672-.438 1.062-.438s.78.156 1.062.438l4.594 4.61L21.42 5.656c.282-.28.673-.438 1.063-.438s.78.155 1.062.437l2.125 2.125c.28.28.438.672.438 1.062z\"\/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t\tAdded to cart\t\t\t\t\t<\/span>\n\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><!--end .edd_purchase_submit_wrapper-->\n\n\t\t<input type=\"hidden\" name=\"download_id\" value=\"1114\">\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"edd_action\" class=\"edd_action_input\" value=\"add_to_cart\">\n\t\t\n\t\t\n\t\t\n\t<\/form><!--end #edd_purchase_1114-->\n\t\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dandole seguimiento a los tutoriales que he realizado, \u00a0ahora voy a mostrar como \u00a0como llenar una tabla con el id y que \u00e9ste tenga un enlace para que cuando el usuario le de click se despliegue la informaci\u00f3n. Para poder completar este tutorial primero debes de haber realizado el tutorial\u00a0M\u00e9todo PDO::query para obtener resultados con &#8230; <a title=\"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)\" class=\"read-more\" href=\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\" aria-label=\"Read more about Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[29],"tags":[],"class_list":["post-525","post","type-post","status-publish","format-standard","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL) &#187; The Code<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL) &#187; The Code\" \/>\n<meta property=\"og:description\" content=\"Dandole seguimiento a los tutoriales que he realizado, \u00a0ahora voy a mostrar como \u00a0como llenar una tabla con el id y que \u00e9ste tenga un enlace para que cuando el usuario le de click se despliegue la informaci\u00f3n. Para poder completar este tutorial primero debes de haber realizado el tutorial\u00a0M\u00e9todo PDO::query para obtener resultados con ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-20T15:02:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-02T16:30:39+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\" \/>\n<meta name=\"author\" content=\"Reedyseth\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Reedyseth\" \/>\n<meta name=\"twitter:site\" content=\"@Reedyseth\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Reedyseth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\"},\"author\":{\"name\":\"Reedyseth\",\"@id\":\"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\"},\"headline\":\"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)\",\"datePublished\":\"2013-06-20T15:02:34+00:00\",\"dateModified\":\"2016-05-02T16:30:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\"},\"wordCount\":426,\"image\":{\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\",\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\",\"url\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\",\"name\":\"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL) &#187; The Code\",\"isPartOf\":{\"@id\":\"http:\/\/behstant.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\",\"datePublished\":\"2013-06-20T15:02:34+00:00\",\"dateModified\":\"2016-05-02T16:30:39+00:00\",\"author\":{\"@id\":\"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\"},\"breadcrumb\":{\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage\",\"url\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\",\"contentUrl\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/behstant.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/behstant.com\/blog\/#website\",\"url\":\"http:\/\/behstant.com\/blog\/\",\"name\":\"The Code\",\"description\":\"Learn Web Solutions in WordPress, PHP, jand also purchase code solutions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/behstant.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\",\"name\":\"Reedyseth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"caption\":\"Reedyseth\"},\"description\":\"My Google Profile+\",\"sameAs\":[\"http:\/\/behstant.com\"],\"url\":\"https:\/\/behstant.com\/blog\/author\/reedyseth\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL) &#187; The Code","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/","og_locale":"en_US","og_type":"article","og_title":"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL) &#187; The Code","og_description":"Dandole seguimiento a los tutoriales que he realizado, \u00a0ahora voy a mostrar como \u00a0como llenar una tabla con el id y que \u00e9ste tenga un enlace para que cuando el usuario le de click se despliegue la informaci\u00f3n. Para poder completar este tutorial primero debes de haber realizado el tutorial\u00a0M\u00e9todo PDO::query para obtener resultados con ... Read more","og_url":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/","og_site_name":"The Code","article_published_time":"2013-06-20T15:02:34+00:00","article_modified_time":"2016-05-02T16:30:39+00:00","og_image":[{"url":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png","type":"","width":"","height":""}],"author":"Reedyseth","twitter_card":"summary_large_image","twitter_creator":"@Reedyseth","twitter_site":"@Reedyseth","twitter_misc":{"Written by":"Reedyseth","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#article","isPartOf":{"@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/"},"author":{"name":"Reedyseth","@id":"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f"},"headline":"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)","datePublished":"2013-06-20T15:02:34+00:00","dateModified":"2016-05-02T16:30:39+00:00","mainEntityOfPage":{"@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/"},"wordCount":426,"image":{"@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage"},"thumbnailUrl":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png","articleSection":["PHP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/","url":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/","name":"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL) &#187; The Code","isPartOf":{"@id":"http:\/\/behstant.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage"},"image":{"@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage"},"thumbnailUrl":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png","datePublished":"2013-06-20T15:02:34+00:00","dateModified":"2016-05-02T16:30:39+00:00","author":{"@id":"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f"},"breadcrumb":{"@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#primaryimage","url":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png","contentUrl":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2013\/06\/010.png"},{"@type":"BreadcrumbList","@id":"https:\/\/behstant.com\/blog\/php\/crear-tabla-con-id-de-base-de-datos-y-mostrar-informacion-al-hacer-click\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/behstant.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Crear Tabla HTML con ID y Mostrar Informaci\u00f3n (PHP,MySQL)"}]},{"@type":"WebSite","@id":"http:\/\/behstant.com\/blog\/#website","url":"http:\/\/behstant.com\/blog\/","name":"The Code","description":"Learn Web Solutions in WordPress, PHP, jand also purchase code solutions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/behstant.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f","name":"Reedyseth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","caption":"Reedyseth"},"description":"My Google Profile+","sameAs":["http:\/\/behstant.com"],"url":"https:\/\/behstant.com\/blog\/author\/reedyseth\/"}]}},"_links":{"self":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/comments?post=525"}],"version-history":[{"count":0,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts\/525\/revisions"}],"wp:attachment":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/media?parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/categories?post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/tags?post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}