Questions tagged as 'php'

0
answers

How to send an image to a php file

I have a problem sending an image to a php file. To start I have a page with a <form> where I send different data to my php file and then upload them to a database. With this I have no problem. The problem arises when I also w...
asked by 19.12.2018 / 14:58
0
answers

You need to add [301] in htaccess

A query related to friendly url. I am designing a site from 0 in php and I was wondering if it is necessary to add the [301] in the Rewriterule line as in the following example: Options +FollowSymLinks RewriteEngine on Rewriterule ^rubro/([...
asked by 19.12.2018 / 14:34
0
answers

there is some module or variable in htaccess

Open some module or variable that can get me the name of the server that is currently. Example: If I'm on localhost, tell me localhost or if I'm in a domain midominio.com is for it to be automatic and not to be putting the domain...
asked by 19.12.2018 / 18:04
1
answer

How can I return all the users of a row and not just one?

How can I make it show all the usernames and the amount they carry? so far only the first user returns and the others do not ... <?php ini_set('display_errors', 1); error_reporting(E_ALL); $ayer = new DateTime(''.date('Y-m-d', strtotime(...
asked by 14.12.2018 / 02:09
1
answer

save photos and data with php and mysql

Hello, I am making some adjustments to an inventory control website and they ask me to create an option to put photos to the products and that when editing the product data it is possible to edit the photo among other things, but in this it's wh...
asked by 07.12.2018 / 21:35
1
answer

How can I know when going to a predetermined url

Good evening I have a program that generates a button to pay. But I need to know when the payment is canceled. and when it's done. Now I'm testing and place that when you cancel go to google .. but I want to know how I take a variable that co...
asked by 08.12.2018 / 04:47
1
answer

I can not list an array in a blade view "Trying to get property of non-object"

I need to list some boxes in a quote. inside the gallery view add checkbox inside an array to send them to the controller and this sends them to the view that I need to contact. this data comes to the view but it throws me the following error...
asked by 17.12.2018 / 21:05
1
answer

how could I insert this

I have this script: $(document).on('click', '.tipo-sangre', function(event){ var tipo = $(this).data("sangre"); $(tipo).appendTo("#tipo_sangre"); }); What I want is to give clik me pass the value of the var to a hidden type input to b...
asked by 17.12.2018 / 22:27
0
answers

Send ARRAY Ajax to PHP and insert in BD - Dynamic

I have a quantity x of inputs which I want to pass through Ajax to a PHP, the problem is that I pass an Array with all the inputs and their contents, but I want that at the moment of inserting a DB, I insert both the content of the input as the...
asked by 17.12.2018 / 22:03
1
answer

Display ANGULAR4 on APACHE server

I want to display an Angular4 app on a Apache server. After investigating a good time, this is what I have done so far: ng build --prod - > A dist folder has been created in my application. I copied (should I cut it?) and pas...
asked by 09.12.2018 / 18:53