Questions tagged as 'php'

0
answers

I have a table that I got with web scraping I would like to modify it and give it my own design

I have a table that I got with web scraping I would like to modify it and give it my own design <?php $codigo = ($_GET['codigo']); $codigo2 = (string) $codigo; $link = "http://www2.deltron.com.pe/modulos/productos/items/postsql.php?item...
asked by 19.10.2018 / 17:27
0
answers

The message "use mysqli or PDO instead" is optional or mandatory

A while ago I transferred a website that works with smarty to another hosting and since it happened there was a section of the front-end that did not work well. Some change was made and it was solved, or apparently that seemed. The fact is th...
asked by 19.10.2018 / 20:52
1
answer

Problems in passing json values

I have the following code: $.post("php/llenar.php",{opcion: op}, function(data){ $("#valor").html(data); }); $("#valor").change(function(){ $("#valor option:selected").each(function(){ op = "valor"; valor= $(this).val()...
asked by 18.10.2018 / 19:08
0
answers

validate a password with hash encryption for a php login

<?php session_start(); // Include db config require_once 'config.php'; // Init vars $userinput = $password = ''; $userinput_err = $password_err = ''; // Process form when post submit if(isset($_POST['login'])){ // Sanitiz...
asked by 17.10.2018 / 23:19
1
answer

Store SELECT in Two-dimensional Array PHP / JSON

I have been doing this query, in which I make two queries to two tables, to take in one the data of the Student and in the other the modules that it studies. What I need is for me to generate an arrangement, where for each student I store the...
asked by 18.10.2018 / 00:04
1
answer

Images in databases and Laravel 5.6

Good evening I have been working with Laravel 5.6, and they gave me the task of making a query to the database that is postgresql and showing the result in a view. The problem is that in the data consulted there is a field where images are store...
asked by 18.10.2018 / 00:24
2
answers

Break down .txt file information for database save

function filedata () {     $ file = fopen ('data_centros / datos_AVC05.log', 'r');     if (! $ file) {         echo "The file could not be opened";     } else {         while (($ line = fgets ($ file))! == false) {             yield $ line;     ...
asked by 22.10.2018 / 19:14
0
answers

I need to search the database depending on the selected checkboxes of the regions, their states as it could be solved

table = commerc fields id, name, brand, region, district, provincia, categoria I need that when consulting the regions, I bring the records and can select through a checkbox the districts and provinces of the selected regions....
asked by 24.10.2018 / 13:16
0
answers

I need to search the database depending on the selected checkboxes of the regions, their states as it could be solved

table = commerc fields id, name, brand, region, district, provincia, categoria I need that when consulting the regions, I bring the records and can select through a checkbox the districts and provinces of the selected regions....
asked by 24.10.2018 / 13:16
0
answers

Display a pdf hosted in a blob field

In my MySQL database I have a table where it hosts a pdf file in a blob field (not the file path!). I need to show or preview as in google the pdf in a blade view through a link or button (do not download!). thank you very much!     
asked by 24.10.2018 / 14:07