if($_POST) { $keys_post = array_keys($_POST); foreach ($keys_post as $key_post) { $$key_post = $_POST[$key_post]; error_log("variable $key_post viene desde $ _POST"); } } if($_GET) { $keys_get = array_keys($_GET); foreach ($keys_get as $key_get) { $$key_get = $_GET[$key_get]; error_log("variable $key_get viene desde $ _GET"); } } if($_SESSION) { $keys_sesion = array_keys($_SESSION); foreach ($keys_sesion as $key_sesion) { $$key_sesion = $_SESSION[$key_sesion]; error_log("variable $key_sesion viene desde $ _SESSION"); } } ?> include("lib_carrito.php"); require("../admin/configuracion.php"); mysql_connect($host_bd,$usuari_bd,$clau_bd); $r=mysql_db_query($nom_bd,"select * from tendarob where referencia='$id'"); $s=mysql_fetch_object($r); $nombre=$s->texte_I_cast_Article; $precio=$s->preu_Article; ?>
|