Questions tagged as 'php'

0
answers

Send data by AJAX and return it by JSON

I'm trying to make a routine where the user enters a validation code and the moment he gives in sending; send what the user wrote, make a query to the database and there make a tour of the information to return it. This is something I've trie...
asked by 04.12.2018 / 21:40
0
answers

how to use websockets?

please I need your help I'm creating an app and I want to send data through websockets but I do not know how to receive the data and create a page to send example: pagEnvia.html and I want to receive the data in my index.php I have this code tha...
asked by 05.12.2018 / 00:11
0
answers

Problem with button Confirm Purchase of my cart

Again I ask a question that I have already asked but in a different way, to see if that is how I explain myself better. I have made a cart in constant communication with my database (When the user selects a product it is inserted in a table "ite...
asked by 03.12.2018 / 16:10
1
answer

AJAX function with VUE

I would like to know in what way the following code can be done but with VUE, I would like to venture into this new technology but I do not have much knowledge about it then I would like to pass the next ajax call but with VUE, I have already lo...
asked by 03.12.2018 / 16:29
1
answer

Show Images With PHP

Hello, good afternoon .... You could help me, it's that I need to show some images, but I mean, in the bd, I have a lacual table that contains 1400 data, and I have a web page with which to select a only data, it brings all the characteristics...
asked by 04.12.2018 / 21:07
0
answers

Save base64 image from processing to php

I have a sketch with processing in html5 that saves an image with SaveFrame() ; and opens in a new tab with data: image / png; base64," xxxxxx I need to save the image that appears in the new tab in a database, but I do no...
asked by 04.12.2018 / 19:41
0
answers

How to transform an image that I got from an input to base 64 with php?

I would like to transform a base64 image obtained from an input. But in doing so I print "ZGVzY2FyZ2ExLmpwZw ==" or something similar with each image I try. How do I make it so that I really get the image in base 64? HTML: <!DOCTYPE html...
asked by 03.12.2018 / 12:59
1
answer

Creating a multidimensional array with php and MySQL

I'm creating a multidimensional array, which by necessity should be something like this: The lengths (225,250 ... 950) will not always be the same, depending on what is in the database, as well as the categories (T1, T2, T3 ... T12) I did...
asked by 03.12.2018 / 15:19
1
answer

How to validate a 404 on a page with an if

I am using the following code for($pagina=50;$pagina<60;$pagina++){ $data = file_get_contents("http://www.pagina.net/?p=".$pagina); if ( preg_match('|<h2 class="titulo">(.*?)</h2>|is' , $data , $cap ) ) { echo '<br>...
asked by 03.12.2018 / 12:17
0
answers

Make a class for all the alerts

I want to do a class based on the alert that appear in my application, but what I want is to know how to make a class so that it works with the different id's of each one of the alerts that appear in the application, that is, regardless of the...
asked by 03.12.2018 / 14:56