Questions tagged as 'php'

1
answer

I have an error Vuejs shows me console but in sight - laravel

Template.html <div class="container"> <table class="table table-striped"> <thead> <tr> <th scope="col">#</th> <th scope="col">Nombre completo</th> <th scope="co...
asked by 08.10.2018 / 16:24
1
answer

How can I add two rows in SQL

id Nombre monto 1 David $500.00 2 Andres $100.00 3 Pedro $600.00 How many friends can help me? I want to add the amount of David plus Andres and send that to another table. What I want is to do as a type of transfer is to say...
asked by 04.10.2018 / 19:16
2
answers

Base url in javascript with codeigniter to load datatable

Hello problem is that I am trying to load a datatable through ajax, but it turns out that I get a 404 error. is my javascript code function cargardatos(){ $('#users-table').DataTable({ "language": { decimal: ""...
asked by 04.10.2018 / 21:00
0
answers

I'm working with php, js with a data form and upload photos, I want to delete the user's record and at the same time delete the photo with unlink

Hi, I'm new with php and I'm working on a form to fill in user data and add a photo, I keep the photo on the server and the path I keep in sql database, what I want is to delete the user record and also delete the server photo, but I can not, I'...
asked by 04.10.2018 / 19:53
1
answer

Problems with importing excel from php

Using this code, I download the file, you show me the data but some records do not appear in the corresponding cells, for example the name comes out in the surname cell GREETINGS <?php /*******EDIT LINES 3-8*******/ $DB_Server = "lo...
asked by 04.10.2018 / 19:08
0
answers

Error executing artisan serve

Good evening at the moment of starting the laravel project I get this error in the command line, I really do not know what should be said that the error is in this file     
asked by 09.10.2018 / 00:35
0
answers

It does not insert me in php and it does not show the error

When saving it does not insert and it does not show any error, how can I capture the error and show it on the screen? .Thank you. //class.establecimiento.php <?php function __construct() { parent::__construct(); //estamos conectados...
asked by 09.10.2018 / 00:41
0
answers

How to upload an image if I am using contentSecurityPolicy?

Good morning everyone I am working on a project in laravel and install the library Secure Headers Everything works fine for the configuration of the css and the javscript, but I have a section of my project that I have to load images...
asked by 10.10.2018 / 18:34
3
answers

Style in PHP file

I'm starting on the php and I have a question. Can you give style to print with echo, I want to put a phrase in bold and I would like to do it without resorting to the css. It's possible? Thanks     
asked by 10.10.2018 / 18:30
0
answers

error when saving an order detail in laravel, it tells me no existing column

I am using laravel to create an ordering system and when I save an order it generates an error: "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'stock' in 'field list' (SQL: insert into 'detalle_pedidos' ('idpedido', 'idprod...
asked by 03.10.2018 / 19:05