Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <script type="text/javascript">
  2. //var numeroficha;
  3. function abreFicha(numero) {
  4. //document.getElementById("mine180").innerHTML="";
  5. this.numero = parseInt(numero);
  6. alert(numero);
  7. sessionStorage.setItem("sent", numero);
  8. window.open('onlineappFichaMine.php','_self');
  9. }
  10. </script>
  11.  
  12. $numFicha = "<script> document.write(a) </script>";
  13. echo $numFicha;
  14.  
  15. public function get_mineral($numFicha) {
  16.  
  17. $consulta=$this->db->query("SELECT * FROM MINERALESES WHERE NUMEROMINE='$numFicha'");
  18.  
  19. while($filas=$consulta->fetch(PDO::FETCH_NUM)) {
  20. $this->mineralesc[]=$filas;
  21. }
  22. return $this->mineralesc;
  23.  
  24. }
  25.  
  26. get_mineral(10);
  27.  
  28. get_mineral($numFicha);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement